diff options
author | mpp <mpp@FreeBSD.org> | 1995-08-28 21:30:59 +0000 |
---|---|---|
committer | mpp <mpp@FreeBSD.org> | 1995-08-28 21:30:59 +0000 |
commit | 684146e8cecf2a925a3b2281a218c99678a04171 (patch) | |
tree | 67278d75d3abf5f6772c71401cc931a0c8700dee /usr.sbin/pppd | |
parent | 3e1e7bcd42e9e4ca3c52ddefa6bc62b4df57add2 (diff) | |
download | FreeBSD-src-684146e8cecf2a925a3b2281a218c99678a04171.zip FreeBSD-src-684146e8cecf2a925a3b2281a218c99678a04171.tar.gz |
Check for expired passwords before allowing access to the system.
Diffstat (limited to 'usr.sbin/pppd')
-rw-r--r-- | usr.sbin/pppd/auth.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pppd/auth.c b/usr.sbin/pppd/auth.c index e8b2d06..ec6ab98 100644 --- a/usr.sbin/pppd/auth.c +++ b/usr.sbin/pppd/auth.c @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: auth.c,v 1.2 1994/09/25 02:31:52 wollman Exp $"; +static char rcsid[] = "$Id: auth.c,v 1.3 1995/05/30 03:51:04 rgrimes Exp $"; #endif #include <stdio.h> @@ -456,6 +456,9 @@ login(user, passwd, msg, msglen) return (UPAP_AUTHNAK); } + if (pw->pw_expire && time(NULL) >= pw->pw_expire) + return (UPAP_AUTHNAK); + /* * XXX If no passwd, let them login without one. */ |