passdb-shadow.c revision 1f1e81aab38d833d1c9cdc244c91fd762e0080d4
/* Copyright (C) 2002-2003 Timo Sirainen */
#include "config.h"
#ifdef PASSDB_SHADOW
#include "common.h"
#include "safe-memset.h"
#include "passdb.h"
#include "mycrypt.h"
#include <shadow.h>
static void
{
int result;
if (verbose) {
i_info("shadow(%s): unknown user",
}
return;
}
if (verbose) {
i_info("shadow(%s): invalid password field '%s'",
}
return;
}
/* check if the password is valid */
/* clear the passwords from memory */
if (!result) {
if (verbose) {
i_info("shadow(%s): password mismatch",
}
return;
}
}
static void shadow_deinit(void)
{
endspent();
}
struct passdb_module passdb_shadow = {
"shadow",
};
#endif