passdb-bsdauth.c revision dd93aba1901a457346990f49c54a738947dc7128
/* 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);
} else
return module;
}
{
endpwent();
}
struct passdb_module_interface passdb_bsdauth = {
"bsdauth",
NULL,
NULL,
};
#else
struct passdb_module_interface passdb_bsdauth = {
};
#endif