userinfo-shadow.c revision 395cfd9f83ada53f9d434943c062cbe1c80bae2a
/*
Loosely based on auth_shadow.c from popa3d by
Solar Designer <solar@openwall.com>
Copyright (C) 2002 Timo Sirainen
*/
#include "config.h"
#ifdef USERINFO_SHADOW
#include "userinfo-passwd.h"
#include "mycrypt.h"
#include <shadow.h>
struct auth_cookie_reply_data *reply)
{
int result;
if (errno != 0)
else if (verbose)
return FALSE;
}
if (verbose) {
i_info("shadow(%s): invalid password field '%s'",
}
return FALSE;
}
/* check if the password is valid */
/* clear the passwords from memory */
if (!result) {
if (verbose)
return FALSE;
}
/* password ok, save the user info */
return FALSE;
}
return TRUE;
}
static void shadow_deinit(void)
{
endpwent();
endspent();
}
struct user_info_module userinfo_shadow = {
NULL,
};
#endif