Exemple #1
0
int
passwd_init(struct passwd *pw, sudo_auth *auth)
{
#ifdef HAVE_SKEYACCESS
    if (skeyaccess(pw, user_tty, NULL, NULL) == 0)
	return AUTH_FAILURE;
#endif
    sudo_setspent();
    auth->data = sudo_getepw(pw);
    sudo_endspent();
    return AUTH_SUCCESS;
}
Exemple #2
0
int
secureware_init(struct passwd *pw, char **promptp, sudo_auth *auth)
{
#ifdef __alpha
    extern int crypt_type;

    if (crypt_type == INT_MAX)
	return AUTH_FAILURE;			/* no shadow */
#endif
    sudo_setspent();
    auth->data = sudo_getepw(pw);
    sudo_endspent();
    return AUTH_SUCCESS;
}