S/Key support now works with sunos4 shadow passwords
This commit is contained in:
3
check.c
3
check.c
@@ -586,8 +586,7 @@ static void check_passwd()
|
|||||||
|
|
||||||
#ifdef HAVE_SKEY
|
#ifdef HAVE_SKEY
|
||||||
set_perms(PERM_ROOT);
|
set_perms(PERM_ROOT);
|
||||||
if (!strcmp(pw_ent->pw_passwd, skey_crypt(pass, pw_ent->pw_passwd,
|
if (!strcmp(encrypted, skey_crypt(pass, encrypted, pw_ent, TRUE))) {
|
||||||
pw_ent, TRUE))) {
|
|
||||||
set_perms(PERM_USER);
|
set_perms(PERM_USER);
|
||||||
return; /* if the passwd is correct return() */
|
return; /* if the passwd is correct return() */
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user