passdb-shadow.c revision 7b93f7355ddbff6956aa7d35cf9801601f36c5dc
/* 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
{
const char *user;
int result;
else
if (errno != 0)
else if (verbose)
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)
return;
}
}
static void shadow_deinit(void)
{
endspent();
}
struct passdb_module passdb_shadow = {
NULL,
};
#endif