summaryrefslogtreecommitdiff
path: root/auth-passwd.c
diff options
context:
space:
mode:
authordtucker <dtucker>2004-02-10 02:01:14 +0000
committerdtucker <dtucker>2004-02-10 02:01:14 +0000
commita193cf3b457cf6486e58cb569d394ecb5f055cef (patch)
tree0b3f330ecdcfa3c193b5e28d216db2979c431911 /auth-passwd.c
parent799025070f3c4c0f2ca835562343c1dd856afbce (diff)
downloadopenssh-a193cf3b457cf6486e58cb569d394ecb5f055cef.tar.gz
- (dtucker) [LICENCE Makefile.in auth-passwd.c auth-shadow.c auth.c auth.h
defines.h] Bug #14: Use do_pwchange to support password expiry and force change for platforms using /etc/shadow. ok djm@
Diffstat (limited to 'auth-passwd.c')
-rw-r--r--auth-passwd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/auth-passwd.c b/auth-passwd.c
index a58dc042..e434a21e 100644
--- a/auth-passwd.c
+++ b/auth-passwd.c
@@ -97,6 +97,13 @@ auth_password(Authctxt *authctxt, const char *password)
return ok;
}
#endif
+#ifdef USE_SHADOW
+ if (auth_shadow_pwexpired(authctxt)) {
+ disable_forwarding();
+ authctxt->force_pwchange = 1;
+ }
+#endif
+
return (sys_auth_passwd(authctxt, password) && ok);
}