passdb-bsdauth.c revision 0373a24e97602b4c394e93a70b75f45e5869fa51
/* Copyright (C) 2002-2003 Timo Sirainen */
#include "config.h"
#ifdef PASSDB_BSDAUTH
#include "common.h"
#include "safe-memset.h"
#include "passdb.h"
#include "mycrypt.h"
#include <login_cap.h>
#include <bsd_auth.h>
#include <pwd.h>
static void
{
int result;
if (verbose) {
i_info("passwd(%s): unknown user",
}
return;
}
if (verbose) {
i_info("passwd(%s): invalid password field '%s'",
}
return;
}
/* check if the password is valid */
/* clear the passwords from memory */
if (!result) {
if (verbose) {
i_info("passwd(%s): password mismatch",
}
return;
}
}
static void bsdauth_deinit(void)
{
endpwent();
}
struct passdb_module passdb_bsdauth = {
NULL,
};
#endif