Home
last modified time | relevance | path

Searched refs:spw (Results 1 – 8 of 8) sorted by relevance

/titanic_50/usr/src/lib/passwdutil/
H A Dldap_attr.c294 struct spwd *spw = NULL; in ldap_getattr() local
301 spw = ldapbuf->spwd; in ldap_getattr()
322 STRDUP_OR_ERR(w->data.val_s, spw->sp_pwdp, res); in ldap_getattr()
340 w->data.val_i = spw->sp_lstchg; in ldap_getattr()
346 w->data.val_i = spw->sp_min; in ldap_getattr()
352 w->data.val_i = spw->sp_max; in ldap_getattr()
358 w->data.val_i = spw->sp_warn; in ldap_getattr()
364 w->data.val_i = spw->sp_inact; in ldap_getattr()
370 w->data.val_i = spw->sp_expire; in ldap_getattr()
376 w->data.val_i = spw->sp_flag; in ldap_getattr()
[all …]
H A Dutils.c72 free_spwd(struct spwd *spw) in free_spwd() argument
74 if (spw->sp_namp) free(spw->sp_namp); in free_spwd()
75 if (spw->sp_pwdp) free(spw->sp_pwdp); in free_spwd()
76 free(spw); in free_spwd()
164 turn_on_default_aging(struct spwd *spw) in turn_on_default_aging() argument
188 spw->sp_min = 7 * minweeks; in turn_on_default_aging()
189 if (spw->sp_min <= 0) in turn_on_default_aging()
190 spw->sp_min = -1; in turn_on_default_aging()
192 spw->sp_max = 7 * maxweeks; in turn_on_default_aging()
193 if (spw->sp_max == 0) in turn_on_default_aging()
[all …]
H A Dfiles_attr.c476 struct spwd *spw; in files_getattr() local
485 spw = pwbuf->spwd; in files_getattr()
515 if ((w->data.val_s = strdup(spw->sp_pwdp)) == NULL) in files_getattr()
575 w->data.val_i = spw->sp_lstchg; in files_getattr()
578 w->data.val_i = spw->sp_min; in files_getattr()
581 w->data.val_i = spw->sp_max; in files_getattr()
584 w->data.val_i = spw->sp_warn; in files_getattr()
587 w->data.val_i = spw->sp_inact; in files_getattr()
590 w->data.val_i = spw->sp_expire; in files_getattr()
593 w->data.val_i = spw->sp_flag; in files_getattr()
[all …]
H A Dnss_attr.c223 struct spwd *spw; in nss_getattr() local
232 spw = pwbuf->spwd; in nss_getattr()
262 if ((w->data.val_s = strdup(spw->sp_pwdp)) == NULL) in nss_getattr()
282 w->data.val_i = spw->sp_lstchg; in nss_getattr()
285 w->data.val_i = spw->sp_min; in nss_getattr()
288 w->data.val_i = spw->sp_max; in nss_getattr()
291 w->data.val_i = spw->sp_warn; in nss_getattr()
294 w->data.val_i = spw->sp_inact; in nss_getattr()
297 w->data.val_i = spw->sp_expire; in nss_getattr()
300 w->data.val_i = spw->sp_flag; in nss_getattr()
[all …]
/titanic_50/usr/src/cmd/ssh/sshd/
H A Dauth-passwd.c104 struct spwd *spw; in auth_password()
107 struct passwd_adjunct *spw; in auth_password()
175 spw = getspnam(pw->pw_name); in auth_password()
176 if (spw != NULL) in auth_password()
177 pw_password = spw->sp_pwdp; in auth_password()
181 if (issecure() && (spw = getpwanam(pw->pw_name)) != NULL) in auth_password()
182 pw_password = spw->pwa_passwd; in auth_password()
H A Dauth.c94 struct spwd *spw; in allowed_user() local
101 spw = getspnam(pw->pw_name); in allowed_user()
102 if (spw != NULL) { in allowed_user()
105 " sp_max %d", (int)today, (int)spw->sp_expire, in allowed_user()
106 (int)spw->sp_lstchg, (int)spw->sp_max); in allowed_user()
112 if (spw->sp_expire != -1 && today > spw->sp_expire) { in allowed_user()
117 if (spw->sp_lstchg == 0) { in allowed_user()
123 if (spw->sp_max != -1 && in allowed_user()
124 today > spw->sp_lstchg + spw->sp_max) { in allowed_user()
/titanic_50/usr/src/cmd/keyserv/
H A Dnewkey.c339 struct spwd *spw; local
357 spw = getspnam(pw->pw_name);
358 if (spw)
359 login_password = spw->sp_pwdp;
H A Dchkey.c90 struct spwd *spw = NULL; /* shadow entry of user */ variable
363 char *en_login_pw = spw->sp_pwdp; in cmp_passwd()
1168 if ((spw = getspnam(pw->pw_name)) == 0) { in main()
1182 if (strcmp(spw->sp_pwdp, NOPWDRTR) == 0) { in main()