/* Copyright (c) 2002-2018 Dovecot authors, see the included COPYING file */
#include "auth-common.h"
#include "passdb.h"
#ifdef PASSDB_BSDAUTH
#include "safe-memset.h"
#include "auth-cache.h"
#include "ipwd.h"
#include "mycrypt.h"
#include <login_cap.h>
#include <bsd_auth.h>
static void
{
const char *type;
int result;
case -1:
"getpwnam() failed: %m");
return;
case 0:
return;
}
/* check if the password is valid */
/* clear the passwords from memory */
if (result == 0) {
return;
}
/* make sure we're using the username exactly as it's in the database */
}
static struct passdb_module *
{
else if (*args != '\0')
return module;
}
{
endpwent();
}
"bsdauth",
NULL,
NULL,
};
#else
.name = "bsdauth"
};
#endif