Home
last modified time | relevance | path

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

/titanic_41/usr/src/lib/pam_modules/unix_account/
H A Dunix_acct.c164 if (((shpwd->sp_max == -1) ||
168 (shpwd->sp_max >= shpwd->sp_min)))) {
207 if (shpwd->sp_max < 0 || shpwd->sp_max < shpwd->sp_min) in perform_passwd_aging_check()
211 if (now < (time_t)(shpwd->sp_lstchg + shpwd->sp_max)) in perform_passwd_aging_check()
251 if ((shpwd.sp_warn > 0) && (shpwd.sp_max > 0) && in warn_user_passwd_will_expire()
252 (now + shpwd.sp_warn) >= (time_t)(shpwd.sp_lstchg + shpwd.sp_max)) { in warn_user_passwd_will_expire()
253 days = (time_t)(shpwd.sp_lstchg + shpwd.sp_max) - now; in warn_user_passwd_will_expire()
396 shpwd.sp_max = attr_spw[2].data.val_i; in pam_sm_acct_mgmt()
424 user, pw, shpwd.sp_lstchg, shpwd.sp_min, shpwd.sp_max, in pam_sm_acct_mgmt()
/titanic_41/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.c352 w->data.val_i = spw->sp_max; in ldap_getattr()
572 disable_aging = (spw != NULL && spw->sp_max == 0 && in ldap_update()
782 if (spw->sp_max == -1 && p->data.val_i != -1 && in ldap_update()
795 spw->sp_max = spw->sp_min = spw->sp_warn = -1; in ldap_update()
822 if (spw->sp_max == -1 && in ldap_update()
840 if (spw->sp_max == -1 && in ldap_update()
910 if (ldapbuf->shadow_update_enabled && spw != NULL && spw->sp_max <= 0) { in ldap_update()
915 spw->sp_min = spw->sp_max = spw->sp_warn = -1; in ldap_update()
931 spw->sp_max) < 0) in ldap_update()
H A Dfiles_attr.c581 w->data.val_i = spw->sp_max; in files_getattr()
660 disable_aging = (spw != NULL && spw->sp_max == 0); in files_update()
783 if (spw->sp_max == -1 && in files_update()
818 if (spw->sp_max == -1 && in files_update()
825 spw->sp_max = p->data.val_i; in files_update()
831 if (spw->sp_max == -1 && p->data.val_i != -1 && in files_update()
877 if (spw != NULL && spw->sp_max <= 0) { in files_update()
882 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()
/titanic_41/usr/src/lib/libc/port/gen/
H A Dputspent.c56 if (p->sp_max >= 0) in putspent()
57 (void) fprintf(f, "%d:", p->sp_max); in putspent()
H A Dgetspent_r.c217 shadow->sp_max = -1; in str2spwd()
247 if (!getfield(&p, limit, 0, &shadow->sp_max)) in str2spwd()
/titanic_41/usr/src/cmd/pwconv/
H A Dpwconv.c271 sp->sp_max = maxweeks * 7; in main()
285 sp->sp_max = -1; in main()
326 sp->sp_max = -1; in main()
341 sp->sp_lstchg = sp->sp_min = sp->sp_max = -1; in main()
357 sp->sp_max = maxweeks * 7; in main()
/titanic_41/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),
/titanic_41/usr/src/head/
H A Dshadow.h66 int sp_max; /* number of days password is valid */ member
/titanic_41/usr/src/cmd/ssh/sshd/
H A Dauth.c106 (int)spw->sp_lstchg, (int)spw->sp_max); in allowed_user()
123 if (spw->sp_max != -1 && in allowed_user()
124 today > spw->sp_lstchg + spw->sp_max) { in allowed_user()
/titanic_41/usr/src/lib/nsswitch/nis/common/
H A Dgetspent.c85 spwd->sp_max = -1;
/titanic_41/usr/src/lib/libnisdb/yptol/
H A Dshim_changepasswd.c677 if (shadow->sp_max != -1) { in modify_ent()
1238 sp->sp_max = atoi(temp); in decode_shadow_entry()
1304 sp->sp_max, COLON_CHAR, in write_shadow_info()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dauth.c1347 || ((spwd->sp_max >= 0 && spwd->sp_max < 10000)
1349 && now >= spwd->sp_lstchg + spwd->sp_max)) {
/titanic_41/usr/src/cmd/passmgmt/
H A Dpassmgmt.c348 shadow_st.sp_max = -1; /* no max */ in main()
1638 sprintf(ctp, "%d", ssp->sp_max) + in ck_s_sz()
/titanic_41/usr/src/cmd/ypcmd/yppasswd/
H A Dchangepasswd.c581 if (ospwd.sp_max != -1) { in changepasswd()
/titanic_41/usr/src/cmd/logins/
H A Dlogins.c722 ppasswd->maxdaystilchg = psp->sp_max; in applypasswd()
/titanic_41/usr/src/cmd/ldap/ns_ldap/
H A Dldapaddent.c3356 data.sp_max = ascii_to_int(ecol[4].ec_value.ec_value_val); in genent_shadow()
3357 if (data.sp_max < -1) { in genent_shadow()
3364 data.sp_max = -1; in genent_shadow()
/titanic_41/usr/src/lib/libsldap/common/
H A Dns_writes.c1854 if (ptr->sp_max >= 0) { in __s_cvt_shadow()
1855 (void) sprintf(ibuf, "%d", ptr->sp_max); in __s_cvt_shadow()
/titanic_41/usr/src/uts/sun4u/starfire/sys/
H A Didn.h3826 ulong_t sp_max; member
/titanic_41/usr/src/uts/sun4u/starfire/io/
H A Didn.c2497 (new_value > idnpa->sp_max)) in idn_param_set()