passdb-bsdauth.c revision d5abbb932a0a598f002da39a8b3326643b1b5efc
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */
#include "common.h"
#include "passdb.h"
#ifdef PASSDB_BSDAUTH
#include "safe-memset.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);
}
return module;
}
{
endpwent();
}
struct passdb_module_interface passdb_bsdauth = {
"bsdauth",
NULL,
NULL,
};
#else
struct passdb_module_interface passdb_bsdauth = {
};
#endif