From 684146e8cecf2a925a3b2281a218c99678a04171 Mon Sep 17 00:00:00 2001 From: mpp Date: Mon, 28 Aug 1995 21:30:59 +0000 Subject: Check for expired passwords before allowing access to the system. --- libexec/rexecd/rexecd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libexec/rexecd') diff --git a/libexec/rexecd/rexecd.c b/libexec/rexecd/rexecd.c index 5fc3617..9c6d029 100644 --- a/libexec/rexecd/rexecd.c +++ b/libexec/rexecd/rexecd.c @@ -188,7 +188,8 @@ doit(f, fromp) } } - if (pwd->pw_uid == 0 || *pwd->pw_passwd == '\0') { + if (pwd->pw_uid == 0 || *pwd->pw_passwd == '\0' || + (pwd->pw_expire && time(NULL) >= pwd->pw_expire)) { syslog(LOG_ERR, "%s LOGIN REFUSED from %s", user, remote); error("Login incorrect.\n"); exit(1); -- cgit v1.1