Searched refs:spw (Results 1 – 8 of 8) sorted by relevance
294 struct spwd *spw = NULL; in ldap_getattr() local301 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 …]
72 free_spwd(struct spwd *spw) in free_spwd() argument74 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() argument188 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 …]
476 struct spwd *spw; in files_getattr() local485 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 …]
223 struct spwd *spw; in nss_getattr() local232 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 …]
104 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()
94 struct spwd *spw; in allowed_user() local101 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()
339 struct spwd *spw; local357 spw = getspnam(pw->pw_name);358 if (spw)359 login_password = spw->sp_pwdp;
90 struct spwd *spw = NULL; /* shadow entry of user */ variable363 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()