diff options
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) | |||
97 | return ok; | 97 | return ok; |
98 | } | 98 | } |
99 | #endif | 99 | #endif |
100 | #ifdef USE_SHADOW | ||
101 | if (auth_shadow_pwexpired(authctxt)) { | ||
102 | disable_forwarding(); | ||
103 | authctxt->force_pwchange = 1; | ||
104 | } | ||
105 | #endif | ||
106 | |||
100 | return (sys_auth_passwd(authctxt, password) && ok); | 107 | return (sys_auth_passwd(authctxt, password) && ok); |
101 | } | 108 | } |
102 | 109 | ||