- (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@
diff --git a/auth-passwd.c b/auth-passwd.c
index a58dc04..e434a21 100644
--- a/auth-passwd.c
+++ b/auth-passwd.c
@@ -97,6 +97,13 @@
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);
}