/illumos-gate/usr/src/lib/pam_modules/unix_account/ |
H A D | unix_acct.c | 166 if (((shpwd->sp_max == -1) || 170 (shpwd->sp_max >= shpwd->sp_min)))) { 209 if (shpwd->sp_max < 0 || shpwd->sp_max < shpwd->sp_min) in perform_passwd_aging_check() 213 if (now < (time_t)(shpwd->sp_lstchg + shpwd->sp_max)) in perform_passwd_aging_check() 253 if ((shpwd.sp_warn > 0) && (shpwd.sp_max > 0) && in warn_user_passwd_will_expire() 254 (now + shpwd.sp_warn) >= (time_t)(shpwd.sp_lstchg + shpwd.sp_max)) { in warn_user_passwd_will_expire() 255 days = (time_t)(shpwd.sp_lstchg + shpwd.sp_max) - now; in warn_user_passwd_will_expire() 398 shpwd.sp_max = attr_spw[2].data.val_i; in pam_sm_acct_mgmt() 426 user, pw, shpwd.sp_lstchg, shpwd.sp_min, shpwd.sp_max, in pam_sm_acct_mgmt()
|
/illumos-gate/usr/src/lib/passwdutil/ |
H A D | utils.c | 192 spw->sp_max = 7 * maxweeks; in turn_on_default_aging() 193 if (spw->sp_max == 0) in turn_on_default_aging() 194 spw->sp_max = 7 * MAXWEEKS; in turn_on_default_aging() 195 if (spw->sp_max < 0) in turn_on_default_aging() 196 spw->sp_max = -1; in turn_on_default_aging()
|
H A D | ldap_attr.c | 355 w->data.val_i = spw->sp_max; in ldap_getattr() 575 disable_aging = (spw != NULL && spw->sp_max == 0 && in ldap_update() 785 if (spw->sp_max == -1 && p->data.val_i != -1 && in ldap_update() 798 spw->sp_max = spw->sp_min = spw->sp_warn = -1; in ldap_update() 825 if (spw->sp_max == -1 && in ldap_update() 843 if (spw->sp_max == -1 && in ldap_update() 913 if (ldapbuf->shadow_update_enabled && spw != NULL && spw->sp_max <= 0) { in ldap_update() 918 spw->sp_min = spw->sp_max = spw->sp_warn = -1; in ldap_update() 934 spw->sp_max) < 0) in ldap_update()
|
H A D | files_attr.c | 586 w->data.val_i = spw->sp_max; in files_getattr() 665 disable_aging = (spw != NULL && spw->sp_max == 0); in files_update() 788 if (spw->sp_max == -1 && in files_update() 823 if (spw->sp_max == -1 && in files_update() 830 spw->sp_max = p->data.val_i; in files_update() 836 if (spw->sp_max == -1 && p->data.val_i != -1 && in files_update() 882 if (spw != NULL && spw->sp_max <= 0) { in files_update() 887 spw->sp_min = spw->sp_max = spw->sp_warn = -1; in files_update()
|
H A D | switch_utils.c | 550 shadow->sp_max = -1; 580 if (!getfield(&p, limit, 0, &shadow->sp_max))
|
H A D | nss_attr.c | 290 w->data.val_i = spw->sp_max; in nss_getattr()
|
/illumos-gate/usr/src/cmd/pwconv/ |
H A D | pwconv.c | 269 sp->sp_max = maxweeks * 7; in main() 283 sp->sp_max = -1; in main() 327 sp->sp_max = -1; in main() 343 sp->sp_max = -1; in main() 360 sp->sp_max = maxweeks * 7; in main()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | putspent.c | 54 if (p->sp_max >= 0) in putspent() 55 (void) fprintf(f, "%d:", p->sp_max); in putspent()
|
H A D | getspent_r.c | 216 shadow->sp_max = -1; in str2spwd() 246 if (!getfield(&p, limit, 0, &shadow->sp_max)) in str2spwd()
|
/illumos-gate/usr/src/lib/nsswitch/compat/common/ |
H A D | getspent.c | 140 override(fields[4], &sp->sp_max); 164 (sp->sp_max >= 0 && printnum(2, sp->sp_max),
|
/illumos-gate/usr/src/head/ |
H A D | shadow.h | 66 int sp_max; /* number of days password is valid */ member
|
/illumos-gate/usr/src/lib/nsswitch/nis/common/ |
H A D | getspent.c | 83 spwd->sp_max = -1;
|
/illumos-gate/usr/src/lib/libnisdb/yptol/ |
H A D | shim_changepasswd.c | 680 if (shadow->sp_max != -1) { in modify_ent() 1240 sp->sp_max = atoi(temp); in decode_shadow_entry() 1306 sp->sp_max, COLON_CHAR, in write_shadow_info()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | auth.c | 1340 || ((spwd->sp_max >= 0 && spwd->sp_max < 10000) 1342 && now >= spwd->sp_lstchg + spwd->sp_max)) {
|
/illumos-gate/usr/src/cmd/passmgmt/ |
H A D | passmgmt.c | 350 shadow_st.sp_max = -1; /* no max */ in main() 1640 sprintf(ctp, "%d", ssp->sp_max) + in ck_s_sz()
|
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/ |
H A D | changepasswd.c | 581 if (ospwd.sp_max != -1) { in changepasswd()
|
/illumos-gate/usr/src/cmd/logins/ |
H A D | logins.c | 719 ppasswd->maxdaystilchg = psp->sp_max; in applypasswd()
|
/illumos-gate/usr/src/cmd/ldap/ns_ldap/ |
H A D | ldapaddent.c | 3358 data.sp_max = ascii_to_int(ecol[4].ec_value.ec_value_val); in genent_shadow() 3359 if (data.sp_max < -1) { in genent_shadow() 3366 data.sp_max = -1; in genent_shadow()
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_writes.c | 1856 if (ptr->sp_max >= 0) { in __s_cvt_shadow() 1857 (void) sprintf(ibuf, "%d", ptr->sp_max); in __s_cvt_shadow()
|