passdb-bsdauth.c revision 2a65ac483ea18fd83bcd5d2068ace8b38c8057e3
/* Copyright (c) 2002-2009 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;
args + 10);
} else if (*args != '\0')
return module;
}
{
endpwent();
}
struct passdb_module_interface passdb_bsdauth = {
"bsdauth",
NULL,
NULL,
};
#else
struct passdb_module_interface passdb_bsdauth = {
};
#endif