Lines Matching refs:spw
56 auth_shadow_acctexpired(struct spwd *spw) in auth_shadow_acctexpired() argument
63 daysleft = spw->sp_expire - today; in auth_shadow_acctexpired()
65 (int)spw->sp_expire, daysleft); in auth_shadow_acctexpired()
67 if (spw->sp_expire == -1) { in auth_shadow_acctexpired()
70 logit("Account %.100s has expired", spw->sp_namp); in auth_shadow_acctexpired()
72 } else if (daysleft <= spw->sp_warn) { in auth_shadow_acctexpired()
90 struct spwd *spw = NULL; in auth_shadow_pwexpired() local
96 if ((spw = getspnam((char *)user)) == NULL) { in auth_shadow_pwexpired()
103 (int)spw->sp_lstchg, (int)spw->sp_max); in auth_shadow_pwexpired()
121 daysleft = spw->sp_lstchg + spw->sp_max - today; in auth_shadow_pwexpired()
124 } else if (spw->sp_lstchg == 0) { in auth_shadow_pwexpired()
127 } else if (spw->sp_max == -1) { in auth_shadow_pwexpired()
132 } else if (daysleft <= spw->sp_warn) { in auth_shadow_pwexpired()