diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2002-01-19 02:45:24 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2002-01-19 02:45:24 +0000 |
| commit | d54c36388e53b0a37541e91862d4ab9d096c4a71 (patch) | |
| tree | c2bfa977a0c6c3e0cb4b75df65c08c09003ada4a /lib/libpam/modules/pam_unix/pam_unix.c | |
| parent | 3f9a326a7ac5d4559f7063a39418900c9c892fc2 (diff) | |
Notes
Diffstat (limited to 'lib/libpam/modules/pam_unix/pam_unix.c')
| -rw-r--r-- | lib/libpam/modules/pam_unix/pam_unix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libpam/modules/pam_unix/pam_unix.c b/lib/libpam/modules/pam_unix/pam_unix.c index af6f989fb48c..6f8c0b454ff0 100644 --- a/lib/libpam/modules/pam_unix/pam_unix.c +++ b/lib/libpam/modules/pam_unix/pam_unix.c @@ -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 { |
