Add missing check for right-now-expired password

This commit is contained in:
ache 2002-01-19 02:45:24 +00:00
parent 3d4ab3ebc5
commit a38e044747

View File

@ -152,6 +152,8 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags, int argc, const char **argv)
retval = strcmp(encrypted, pwd->pw_passwd) == 0 ?
PAM_SUCCESS : PAM_AUTH_ERR;
if (pwd->pw_expire && time(NULL) >= pwd->pw_expire)
retval = PAM_AUTH_ERR;
}
else {