summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2002-01-19 09:23:36 +0000
committerache <ache@FreeBSD.org>2002-01-19 09:23:36 +0000
commit0262fc4b8f5aaf8e67e90f8ff3b43520b4905bf6 (patch)
treeb7ff5bd00f0420707690e63b2250dcbd3a715ec9 /lib
parent5dc61eda4cd8691f196a6d815d25760b2566bd8e (diff)
downloadFreeBSD-src-0262fc4b8f5aaf8e67e90f8ff3b43520b4905bf6.zip
FreeBSD-src-0262fc4b8f5aaf8e67e90f8ff3b43520b4905bf6.tar.gz
Back out second right-now-expired password check in pam_sm_chauthtok,
old expired password assumed there
Diffstat (limited to 'lib')
-rw-r--r--lib/libpam/modules/pam_unix/pam_unix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libpam/modules/pam_unix/pam_unix.c b/lib/libpam/modules/pam_unix/pam_unix.c
index 791bb49..7afa45a 100644
--- a/lib/libpam/modules/pam_unix/pam_unix.c
+++ b/lib/libpam/modules/pam_unix/pam_unix.c
@@ -351,8 +351,7 @@ pam_sm_chauthtok(pam_handle_t *pamh, int flags, int argc, const char **argv)
PAM_LOG("Encrypted password 1 is: %s", encrypted);
PAM_LOG("Encrypted password 2 is: %s", pwd->pw_passwd);
- if (strcmp(encrypted, pwd->pw_passwd) != 0 ||
- (pwd->pw_expire && time(NULL) >= pwd->pw_expire))
+ if (strcmp(encrypted, pwd->pw_passwd) != 0)
PAM_RETURN(PAM_AUTH_ERR);
retval = pam_set_item(pamh, PAM_OLDAUTHTOK, (const void *)pass);
OpenPOWER on IntegriCloud