Home
last modified time | relevance | path

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

12

/titanic_41/usr/src/lib/nsswitch/nis/common/
H A Dgetspent.c82 spwd->sp_pwdp = buffer + (p + 1 - instr);
131 if ((spwd->sp_pwdp) && (*(spwd->sp_pwdp) == '#') &&
132 (*(spwd->sp_pwdp + 1) == '#')) {
190 if ((spwd->sp_pwdp) && (*(spwd->sp_pwdp) == '#') &&
191 (*(spwd->sp_pwdp + 1) == '#')) {
/titanic_41/usr/src/lib/pam_modules/unix_account/
H A Dunix_acct.c163 if (shpwd->sp_pwdp[0] == '\0') {
367 shpwd.sp_pwdp = attr_pw[2].data.val_s; in pam_sm_acct_mgmt()
406 if (shpwd.sp_pwdp == NULL) in pam_sm_acct_mgmt()
408 else if (strncmp(shpwd.sp_pwdp, LOCKSTRING, in pam_sm_acct_mgmt()
411 else if (strcmp(shpwd.sp_pwdp, NOPWDRTR) == 0) in pam_sm_acct_mgmt()
447 if (shpwd.sp_pwdp != NULL && in pam_sm_acct_mgmt()
448 strncmp(shpwd.sp_pwdp, LOCKSTRING, sizeof (LOCKSTRING) - 1) == 0) { in pam_sm_acct_mgmt()
466 if (shpwd.sp_pwdp[0] == '\0' && in pam_sm_acct_mgmt()
543 if (shpwd.sp_pwdp) { in pam_sm_acct_mgmt()
544 (void) memset(shpwd.sp_pwdp, 0, strlen(shpwd.sp_pwdp)); in pam_sm_acct_mgmt()
[all …]
/titanic_41/usr/src/lib/passwdutil/
H A Dfiles_attr.c515 if ((w->data.val_s = strdup(spw->sp_pwdp)) == NULL) in files_getattr()
700 spw->sp_pwdp = ""; in files_update()
705 salt = crypt_gensalt(spw->sp_pwdp, pw); in files_update()
730 spw->sp_pwdp = pword; in files_update()
738 if (spw->sp_pwdp == NULL) { in files_update()
739 spw->sp_pwdp = LOCKSTRING; in files_update()
740 } else if ((strncmp(spw->sp_pwdp, LOCKSTRING, in files_update()
742 (strcmp(spw->sp_pwdp, NOLOGINSTRING) != 0)) { in files_update()
744 strlen(spw->sp_pwdp) + 1; in files_update()
751 (void) strlcat(pword, spw->sp_pwdp, len); in files_update()
[all …]
H A Dldap_attr.c322 STRDUP_OR_ERR(w->data.val_s, spw->sp_pwdp, res); in ldap_getattr()
437 char *spw = ldapbuf->spwd->sp_pwdp; in ldap_getpwnam()
699 if (spw->sp_pwdp == NULL) { in ldap_update()
700 spw->sp_pwdp = LOCKSTRING; in ldap_update()
701 } else if ((strncmp(spw->sp_pwdp, LOCKSTRING, in ldap_update()
703 (strcmp(spw->sp_pwdp, NOLOGINSTRING) != 0)) { in ldap_update()
705 strlen(spw->sp_pwdp) + 1 + in ldap_update()
713 (void) strlcat(pwd, spw->sp_pwdp, len); in ldap_update()
714 free(spw->sp_pwdp); in ldap_update()
715 spw->sp_pwdp = pwd; in ldap_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()
/titanic_41/usr/src/lib/libc/port/gen/
H A Dputspent.c46 p->sp_pwdp ? p->sp_pwdp : ""); in putspent()
H A Dgetspent_r.c214 shadow->sp_pwdp = 0; in str2spwd()
231 shadow->sp_pwdp = bufp; in str2spwd()
/titanic_41/usr/src/cmd/logins/
H A Dlogins.c696 if (psp->sp_pwdp == NULL || (*psp->sp_pwdp) == '\0') in applypasswd()
698 else if (strncmp(psp->sp_pwdp, LOCKSTRING, in applypasswd()
701 else if (strncmp(psp->sp_pwdp, NOLOGINSTRING, in applypasswd()
704 else if ((strlen(psp->sp_pwdp) == 13 && in applypasswd()
705 psp->sp_pwdp[0] != '$') || in applypasswd()
706 psp->sp_pwdp[0] == '$') in applypasswd()
812 if (psp->sp_pwdp == (char *)0 || in hasnopasswd()
813 *psp->sp_pwdp == '\0') { in hasnopasswd()
/titanic_41/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()
/titanic_41/usr/src/lib/nsswitch/compat/common/
H A Dgetspent.c161 (sp->sp_pwdp ? sp->sp_pwdp : ""),
/titanic_41/usr/src/lib/libbc/libc/gen/common/
H A Dpwdauth.c58 enpwp = spwp->sp_pwdp; in pwdauth()
/titanic_41/usr/src/cmd/pwconv/
H A Dpwconv.c257 sp->sp_pwdp = pwdp->pw_passwd; in main()
319 sp->sp_pwdp = pwdp->pw_passwd; in main()
339 sp->sp_pwdp = ""; in main()
/titanic_41/usr/src/head/
H A Dshadow.h63 char *sp_pwdp; /* user password */ member
/titanic_41/usr/src/cmd/sulogin/
H A Dsulogin.c322 if (*shpw->sp_pwdp != '\0') { in main()
545 cpass = crypt(pass, lshpw->sp_pwdp); in main_loop()
546 if (((cpass == NULL) && (lshpw->sp_pwdp[0] == '$')) && in main_loop()
550 (strcmp(cpass, lshpw->sp_pwdp) != 0)) { in main_loop()
/titanic_41/usr/src/cmd/ssh/sshd/
H A Dauth-passwd.c177 pw_password = spw->sp_pwdp; in auth_password()
/titanic_41/usr/src/lib/libnisdb/yptol/
H A Dshim_changepasswd.c1193 sp->sp_pwdp = NULL; in get_old_shadow()
1336 if (NULL != spwd->sp_pwdp) in free_shadow_entry()
1337 sfree(spwd->sp_pwdp); in free_shadow_entry()
/titanic_41/usr/src/cmd/su/
H A Dsu.c396 if (sp.sp_pwdp[0] == '\0' || getuid() == (uid_t)ROOT) in main()
400 if ((strcmp(sp.sp_pwdp, crypt(password, sp.sp_pwdp)) != 0)) { in main()
/titanic_41/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()
/titanic_41/usr/src/cmd/passmgmt/
H A Dpassmgmt.c345 shadow_st.sp_pwdp = lkstring; /* locked password */ in main()
1635 (int)strlen(ssp->sp_pwdp) + in ck_s_sz()
/titanic_41/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()
/titanic_41/usr/src/cmd/ldap/ns_ldap/
H A Dldapaddent.c3315 data.sp_pwdp = strdup(pname); in genent_shadow()
3324 data.sp_pwdp = strdup(pname); in genent_shadow()
3439 free(data.sp_pwdp); in genent_shadow()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dauth.c1353 pw->pw_passwd = spwd->sp_pwdp;

12