passdb-passwd.c revision d5abbb932a0a598f002da39a8b3326643b1b5efc
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */
#include "common.h"
#include "passdb.h"
#ifdef PASSDB_PASSWD
#include "safe-memset.h"
#include <pwd.h>
#define PASSWD_CACHE_KEY "%u"
#define PASSWD_PASS_SCHEME "CRYPT"
static void
{
int ret;
return;
}
return;
}
/* save the password so cache can use it */
/* check if the password is valid */
PASSWD_PASS_SCHEME, "passwd");
/* clear the passwords from memory */
if (ret <= 0) {
return;
}
/* make sure we're using the username exactly as it's in the database */
}
{
}
{
endpwent();
}
struct passdb_module_interface passdb_passwd = {
"passwd",
NULL,
NULL,
};
#else
struct passdb_module_interface passdb_passwd = {
};
#endif