Home
last modified time | relevance | path

Searched refs:sp_pwdp (Results 1 – 24 of 24) sorted by relevance

/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetspent.c80 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 Dunix_acct.c164 if (shpwd->sp_pwdp[0] == '\0') {
368 shpwd.sp_pwdp = attr_pw[2].data.val_s; in pam_sm_acct_mgmt()
407 if (shpwd.sp_pwdp == NULL) in pam_sm_acct_mgmt()
409 else if (strncmp(shpwd.sp_pwdp, LOCKSTRING, in pam_sm_acct_mgmt()
412 else if (strcmp(shpwd.sp_pwdp, NOPWDRTR) == 0) in pam_sm_acct_mgmt()
448 if (shpwd.sp_pwdp != NULL && in pam_sm_acct_mgmt()
449 strncmp(shpwd.sp_pwdp, LOCKSTRING, sizeof (LOCKSTRING) - 1) == 0) { in pam_sm_acct_mgmt()
467 if (shpwd.sp_pwdp[0] == '\0' && in pam_sm_acct_mgmt()
544 if (shpwd.sp_pwdp) { in pam_sm_acct_mgmt()
545 (void) memset(shpwd.sp_pwdp, 0, strlen(shpwd.sp_pwdp)); in pam_sm_acct_mgmt()
[all …]
/illumos-gate/usr/src/lib/passwdutil/
H A Dldap_attr.c700 if (spw->sp_pwdp == NULL) { in ldap_update()
701 spw->sp_pwdp = LOCKSTRING; in ldap_update()
715 free(spw->sp_pwdp); in ldap_update()
716 spw->sp_pwdp = pwd; in ldap_update()
718 spw->sp_pwdp); in ldap_update()
729 if (spw->sp_pwdp && in ldap_update()
742 free(spw->sp_pwdp); in ldap_update()
743 spw->sp_pwdp = pwd; in ldap_update()
746 spw->sp_pwdp); in ldap_update()
757 free(spw->sp_pwdp); in ldap_update()
[all …]
H A Dfiles_attr.c701 spw->sp_pwdp = ""; in files_update()
731 spw->sp_pwdp = pword; in files_update()
739 if (spw->sp_pwdp == NULL) { in files_update()
740 spw->sp_pwdp = LOCKSTRING; in files_update()
745 strlen(spw->sp_pwdp) + 1; in files_update()
756 spw->sp_pwdp = pword; in files_update()
761 if (spw->sp_pwdp != NULL && in files_update()
764 (void) strcpy(spw->sp_pwdp, spw->sp_pwdp + in files_update()
770 spw->sp_pwdp = NOLOGINSTRING; in files_update()
820 spw->sp_pwdp != NULL && *spw->sp_pwdp && in files_update()
[all …]
H A Dutils.c75 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 Dswitch_utils.c547 shadow->sp_pwdp = 0;
564 shadow->sp_pwdp = bufp;
H A Dnss_attr.c262 if ((w->data.val_s = strdup(spw->sp_pwdp)) == NULL) in nss_getattr()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dputspent.c44 p->sp_pwdp ? p->sp_pwdp : ""); in putspent()
H A Dgetspent_r.c213 shadow->sp_pwdp = 0; in str2spwd()
230 shadow->sp_pwdp = bufp; in str2spwd()
/illumos-gate/usr/src/cmd/logins/
H A Dlogins.c693 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 Dchangepasswd.c473 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 Dgetspent.c161 (sp->sp_pwdp ? sp->sp_pwdp : ""),
/illumos-gate/usr/src/cmd/pwconv/
H A Dpwconv.c255 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 Dsulogin.c323 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 Dshadow.h63 char *sp_pwdp; /* user password */ member
/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Dshim_changepasswd.c1195 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 Dsu.c424 if (sp.sp_pwdp[0] == '\0' || getuid() == (uid_t)ROOT) in main()
428 if ((strcmp(sp.sp_pwdp, crypt(password, sp.sp_pwdp)) != 0)) { in main()
/illumos-gate/usr/src/cmd/keyserv/
H A Dnewkey.c359 login_password = spw->sp_pwdp;
H A Dchkey.c363 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 Din.rshd.c761 if (shpwd->sp_pwdp != 0) { in doit()
762 if (*shpwd->sp_pwdp != '\0') { in doit()
/illumos-gate/usr/src/cmd/passmgmt/
H A Dpassmgmt.c347 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 Dldapaddent.c3317 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 Dauth.c1346 pw->pw_passwd = spwd->sp_pwdp;
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_writes.c1830 if (ptr->sp_pwdp == NULL) { in __s_cvt_shadow()
1834 rc = __s_add_attr(e, "userPassword", ptr->sp_pwdp); in __s_cvt_shadow()