summaryrefslogtreecommitdiffstats
path: root/auth.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.c
parente3dba82dd44c165716ce2a81157b6c2f269fc0af (diff)
- (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.c')
-rw-r--r--auth.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/auth.c b/auth.c
index 4b307dab..c6e7c21c 100644
--- a/auth.c
+++ b/auth.c
@@ -106,25 +106,6 @@ allowed_user(struct passwd * pw)
logit("Account %.100s has expired", pw->pw_name);
return 0;
}
-
-#if defined(__hpux) && !defined(HAVE_SECUREWARE)
- if (iscomsec() && spw->sp_min == 0 && spw->sp_max == 0 &&
- spw->sp_warn == 0)
- disabled = 1; /* Trusted Mode: expiry disabled */
-#endif
-
- if (!disabled && spw->sp_lstchg == 0) {
- logit("User %.100s password has expired (root forced)",
- pw->pw_name);
- return 0;
- }
-
- if (!disabled && spw->sp_max != -1 &&
- today > spw->sp_lstchg + spw->sp_max) {
- logit("User %.100s password has expired (password aged)",
- pw->pw_name);
- return 0;
- }
}
#endif /* HAS_SHADOW_EXPIRE */
#endif /* defined(HAVE_SHADOW_H) && !defined(DISABLE_SHADOW) */