Home
last modified time | relevance | path

Searched refs:sp_max (Results 1 – 19 of 19) sorted by relevance

/illumos-gate/usr/src/lib/pam_modules/unix_account/
H A Dunix_acct.c165 if (((shpwd->sp_max == -1) ||
169 (shpwd->sp_max >= shpwd->sp_min)))) {
208 if (shpwd->sp_max < 0 || shpwd->sp_max < shpwd->sp_min) in perform_passwd_aging_check()
212 if (now < (time_t)(shpwd->sp_lstchg + shpwd->sp_max)) in perform_passwd_aging_check()
252 if ((shpwd.sp_warn > 0) && (shpwd.sp_max > 0) && in warn_user_passwd_will_expire()
253 (now + shpwd.sp_warn) >= (time_t)(shpwd.sp_lstchg + shpwd.sp_max)) { in warn_user_passwd_will_expire()
254 days = (time_t)(shpwd.sp_lstchg + shpwd.sp_max) - now; in warn_user_passwd_will_expire()
397 shpwd.sp_max = attr_spw[2].data.val_i; in pam_sm_acct_mgmt()
425 user, pw, shpwd.sp_lstchg, shpwd.sp_min, shpwd.sp_max, in pam_sm_acct_mgmt()
/illumos-gate/usr/src/lib/passwdutil/
H A Dutils.c192 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 Dldap_attr.c353 w->data.val_i = spw->sp_max; in ldap_getattr()
573 disable_aging = (spw != NULL && spw->sp_max == 0 && in ldap_update()
783 if (spw->sp_max == -1 && p->data.val_i != -1 && in ldap_update()
796 spw->sp_max = spw->sp_min = spw->sp_warn = -1; in ldap_update()
823 if (spw->sp_max == -1 && in ldap_update()
841 if (spw->sp_max == -1 && in ldap_update()
911 if (ldapbuf->shadow_update_enabled && spw != NULL && spw->sp_max <= 0) { in ldap_update()
916 spw->sp_min = spw->sp_max = spw->sp_warn = -1; in ldap_update()
932 spw->sp_max) < 0) in ldap_update()
H A Dfiles_attr.c582 w->data.val_i = spw->sp_max; in files_getattr()
661 disable_aging = (spw != NULL && spw->sp_max == 0); in files_update()
784 if (spw->sp_max == -1 && in files_update()
819 if (spw->sp_max == -1 && in files_update()
826 spw->sp_max = p->data.val_i; in files_update()
832 if (spw->sp_max == -1 && p->data.val_i != -1 && in files_update()
878 if (spw != NULL && spw->sp_max <= 0) { in files_update()
883 spw->sp_min = spw->sp_max = spw->sp_warn = -1; in files_update()
H A Dswitch_utils.c550 shadow->sp_max = -1;
580 if (!getfield(&p, limit, 0, &shadow->sp_max))
H A Dnss_attr.c288 w->data.val_i = spw->sp_max; in nss_getattr()
/illumos-gate/usr/src/cmd/pwconv/
H A Dpwconv.c269 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 Dputspent.c54 if (p->sp_max >= 0) in putspent()
55 (void) fprintf(f, "%d:", p->sp_max); in putspent()
H A Dgetspent_r.c216 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 Dgetspent.c140 override(fields[4], &sp->sp_max);
164 (sp->sp_max >= 0 && printnum(2, sp->sp_max),
/illumos-gate/usr/src/head/
H A Dshadow.h66 int sp_max; /* number of days password is valid */ member
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetspent.c83 spwd->sp_max = -1;
/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Dshim_changepasswd.c680 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 Dauth.c1340 || ((spwd->sp_max >= 0 && spwd->sp_max < 10000)
1342 && now >= spwd->sp_lstchg + spwd->sp_max)) {
/illumos-gate/usr/src/cmd/passmgmt/
H A Dpassmgmt.c350 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 Dchangepasswd.c581 if (ospwd.sp_max != -1) { in changepasswd()
/illumos-gate/usr/src/cmd/logins/
H A Dlogins.c719 ppasswd->maxdaystilchg = psp->sp_max; in applypasswd()
/illumos-gate/usr/src/cmd/ldap/ns_ldap/
H A Dldapaddent.c3358 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 Dns_writes.c1856 if (ptr->sp_max >= 0) { in __s_cvt_shadow()
1857 (void) sprintf(ibuf, "%d", ptr->sp_max); in __s_cvt_shadow()