summaryrefslogtreecommitdiff
path: root/auth-passwd.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-02-10 13:01:14 +1100
committerDarren Tucker <dtucker@zip.com.au>2004-02-10 13:01:14 +1100
commit9df3defdbb122c406072760e07859a3b4ebf567e (patch)
tree53444d450b96ce33715e16374ee97e1b72ebbb6e /auth-passwd.c
parente3dba82dd44c165716ce2a81157b6c2f269fc0af (diff)
downloadopenssh-git-9df3defdbb122c406072760e07859a3b4ebf567e.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);
}