diff options
author | Darren Tucker <dtucker@zip.com.au> | 2004-02-10 03:01:14 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2004-02-10 03:01:14 +0100 |
commit | 9df3defdbb122c406072760e07859a3b4ebf567e (patch) | |
tree | 53444d450b96ce33715e16374ee97e1b72ebbb6e /auth-passwd.c | |
parent | - (dtucker) [auth-passwd.c auth.h openbsd-compat/port-aix.c (diff) | |
download | openssh-9df3defdbb122c406072760e07859a3b4ebf567e.tar.xz openssh-9df3defdbb122c406072760e07859a3b4ebf567e.zip |
- (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.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/auth-passwd.c b/auth-passwd.c index a58dc042b..e434a21e3 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); } |