/illumos-gate/usr/src/lib/nsswitch/nis/common/ |
H A D | getspent.c | 80 spwd->sp_pwdp = buffer + (p + 1 - instr); 129 if ((spwd->sp_pwdp) && (*(spwd->sp_pwdp) == '#') && 130 (*(spwd->sp_pwdp + 1) == '#')) { 188 if ((spwd->sp_pwdp) && (*(spwd->sp_pwdp) == '#') && 189 (*(spwd->sp_pwdp + 1) == '#')) {
|
/illumos-gate/usr/src/lib/pam_modules/unix_account/ |
H A D | unix_acct.c | 165 if (shpwd->sp_pwdp[0] == '\0') { 369 shpwd.sp_pwdp = attr_pw[2].data.val_s; in pam_sm_acct_mgmt() 408 if (shpwd.sp_pwdp == NULL) in pam_sm_acct_mgmt() 410 else if (strncmp(shpwd.sp_pwdp, LOCKSTRING, in pam_sm_acct_mgmt() 413 else if (strcmp(shpwd.sp_pwdp, NOPWDRTR) == 0) in pam_sm_acct_mgmt() 449 if (shpwd.sp_pwdp != NULL && in pam_sm_acct_mgmt() 450 strncmp(shpwd.sp_pwdp, LOCKSTRING, sizeof (LOCKSTRING) - 1) == 0) { in pam_sm_acct_mgmt() 468 if (shpwd.sp_pwdp[0] == '\0' && in pam_sm_acct_mgmt() 545 if (shpwd.sp_pwdp) { in pam_sm_acct_mgmt() 546 (void) memset(shpwd.sp_pwdp, 0, strlen(shpwd.sp_pwdp)); in pam_sm_acct_mgmt() [all …]
|
/illumos-gate/usr/src/lib/passwdutil/ |
H A D | ldap_attr.c | 325 STRDUP_OR_ERR(w->data.val_s, spw->sp_pwdp, res); in ldap_getattr() 440 char *spw = ldapbuf->spwd->sp_pwdp; in ldap_getpwnam() 702 if (spw->sp_pwdp == NULL) { in ldap_update() 703 spw->sp_pwdp = LOCKSTRING; in ldap_update() 704 } else if ((strncmp(spw->sp_pwdp, LOCKSTRING, in ldap_update() 706 (strcmp(spw->sp_pwdp, NOLOGINSTRING) != 0)) { in ldap_update() 708 strlen(spw->sp_pwdp) + 1 + in ldap_update() 716 (void) strlcat(pwd, spw->sp_pwdp, len); in ldap_update() 717 free(spw->sp_pwdp); in ldap_update() 718 spw->sp_pwdp = pwd; in ldap_update() [all …]
|
H A D | files_attr.c | 520 if ((w->data.val_s = strdup(spw->sp_pwdp)) == NULL) in files_getattr() 705 spw->sp_pwdp = ""; in files_update() 710 salt = crypt_gensalt(spw->sp_pwdp, pw); in files_update() 735 spw->sp_pwdp = pword; in files_update() 743 if (spw->sp_pwdp == NULL) { in files_update() 744 spw->sp_pwdp = LOCKSTRING; in files_update() 745 } else if ((strncmp(spw->sp_pwdp, LOCKSTRING, in files_update() 747 (strcmp(spw->sp_pwdp, NOLOGINSTRING) != 0)) { in files_update() 749 strlen(spw->sp_pwdp) + 1; in files_update() 756 (void) strlcat(pword, spw->sp_pwdp, len); in files_update() [all …]
|
H A D | utils.c | 75 if (spw->sp_pwdp) free(spw->sp_pwdp); in free_spwd() 136 if (s->sp_pwdp) in dup_spw() 137 if (((*d)->sp_pwdp = strdup(s->sp_pwdp)) == NULL) in dup_spw()
|
H A D | switch_utils.c | 547 shadow->sp_pwdp = 0; 564 shadow->sp_pwdp = bufp;
|
H A D | nss_attr.c | 264 if ((w->data.val_s = strdup(spw->sp_pwdp)) == NULL) in nss_getattr()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | putspent.c | 44 p->sp_pwdp ? p->sp_pwdp : ""); in putspent()
|
H A D | getspent_r.c | 213 shadow->sp_pwdp = 0; in str2spwd() 230 shadow->sp_pwdp = bufp; in str2spwd()
|
/illumos-gate/usr/src/cmd/logins/ |
H A D | logins.c | 693 if (psp->sp_pwdp == NULL || (*psp->sp_pwdp) == '\0') in applypasswd() 695 else if (strncmp(psp->sp_pwdp, LOCKSTRING, in applypasswd() 698 else if (strncmp(psp->sp_pwdp, NOLOGINSTRING, in applypasswd() 701 else if ((strlen(psp->sp_pwdp) == 13 && in applypasswd() 702 psp->sp_pwdp[0] != '$') || in applypasswd() 703 psp->sp_pwdp[0] == '$') in applypasswd() 809 if (psp->sp_pwdp == (char *)0 || in hasnopasswd() 810 *psp->sp_pwdp == '\0') { in hasnopasswd()
|
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/ |
H A D | changepasswd.c | 473 oldpass_crypt = cryptoldpasswd(yppwd.oldpass, ospwd.sp_pwdp, in changepasswd() 477 if (ospwd.sp_pwdp && *ospwd.sp_pwdp && in changepasswd() 478 (strcmp(oldpass_crypt, ospwd.sp_pwdp) != 0)) { in changepasswd() 539 ospwd.sp_pwdp); in changepasswd() 578 ospwd.sp_pwdp = newpw.pw_passwd; in changepasswd()
|
/illumos-gate/usr/src/lib/nsswitch/compat/common/ |
H A D | getspent.c | 161 (sp->sp_pwdp ? sp->sp_pwdp : ""),
|
/illumos-gate/usr/src/cmd/pwconv/ |
H A D | pwconv.c | 255 sp->sp_pwdp = pwdp->pw_passwd; in main() 320 sp->sp_pwdp = pwdp->pw_passwd; in main() 340 sp->sp_pwdp = ""; in main()
|
/illumos-gate/usr/src/cmd/sulogin/ |
H A D | sulogin.c | 323 if (*shpw->sp_pwdp != '\0') { in main() 546 cpass = crypt(pass, lshpw->sp_pwdp); in main_loop() 547 if (((cpass == NULL) && (lshpw->sp_pwdp[0] == '$')) && in main_loop() 551 (strcmp(cpass, lshpw->sp_pwdp) != 0)) { in main_loop()
|
/illumos-gate/usr/src/head/ |
H A D | shadow.h | 63 char *sp_pwdp; /* user password */ member
|
/illumos-gate/usr/src/lib/libnisdb/yptol/ |
H A D | shim_changepasswd.c | 1195 sp->sp_pwdp = NULL; in get_old_shadow() 1338 if (NULL != spwd->sp_pwdp) in free_shadow_entry() 1339 sfree(spwd->sp_pwdp); in free_shadow_entry()
|
/illumos-gate/usr/src/cmd/su/ |
H A D | su.c | 425 if (sp.sp_pwdp[0] == '\0' || getuid() == (uid_t)ROOT) in main() 429 if ((strcmp(sp.sp_pwdp, crypt(password, sp.sp_pwdp)) != 0)) { in main()
|
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | newkey.c | 359 login_password = spw->sp_pwdp;
|
H A D | chkey.c | 363 char *en_login_pw = spw->sp_pwdp; in cmp_passwd() 1182 if (strcmp(spw->sp_pwdp, NOPWDRTR) == 0) { in main()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rshd.c | 761 if (shpwd->sp_pwdp != 0) { in doit() 762 if (*shpwd->sp_pwdp != '\0') { in doit()
|
/illumos-gate/usr/src/cmd/passmgmt/ |
H A D | passmgmt.c | 347 shadow_st.sp_pwdp = lkstring; /* locked password */ in main() 1637 (int)strlen(ssp->sp_pwdp) + in ck_s_sz()
|
/illumos-gate/usr/src/cmd/ldap/ns_ldap/ |
H A D | ldapaddent.c | 3317 data.sp_pwdp = strdup(pname); in genent_shadow() 3326 data.sp_pwdp = strdup(pname); in genent_shadow() 3441 free(data.sp_pwdp); in genent_shadow()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | auth.c | 1346 pw->pw_passwd = spwd->sp_pwdp;
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_writes.c | 1830 if (ptr->sp_pwdp == NULL) { in __s_cvt_shadow() 1834 rc = __s_add_attr(e, "userPassword", ptr->sp_pwdp); in __s_cvt_shadow()
|