passdb-bsdauth.c revision f516f9d6bf1e87c12e3cb009862ca69b1c2b494b
/* Copyright (c) 2002-2010 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 "mycrypt.h"
#include <login_cap.h>
#include <bsd_auth.h>
#include <pwd.h>
static void
{
int result;
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 *
{
struct passdb_module *module;
else if (*args != '\0')
return module;
}
{
endpwent();
}
struct passdb_module_interface passdb_bsdauth = {
"bsdauth",
NULL,
NULL,
};
#else
struct passdb_module_interface passdb_bsdauth = {
.name = "bsdauth"
};
#endif