passdb-shadow.c revision a2f61d01ddadc5e9b97934901fe57b5cd75244a7
/* Copyright (C) 2002-2003 Timo Sirainen */
#include "common.h"
#ifdef PASSDB_SHADOW
#include "safe-memset.h"
#include "passdb.h"
#include <shadow.h>
#define SHADOW_CACHE_KEY "%u"
#define SHADOW_PASS_SCHEME "CRYPT"
static void
{
int ret;
return;
}
"invalid password field");
return;
}
/* save the password so cache can use it */
/* check if the password is valid */
SHADOW_PASS_SCHEME, "shadow");
/* clear the passwords from memory */
if (ret <= 0) {
return;
}
/* make sure we're using the username exactly as it's in the database */
}
{
}
{
endspent();
}
struct passdb_module_interface passdb_shadow = {
"shadow",
NULL,
NULL,
};
#endif