passdb-shadow.c revision 0373a24e97602b4c394e93a70b75f45e5869fa51
/* 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 = {
NULL,
};
#endif