Home
last modified time | relevance | path

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

/titanic_41/usr/src/lib/passwdutil/
H A Dnss_attr.c65 struct pwbuf { struct
90 struct pwbuf *pwbuf; in nss_getpwnam() argument
94 *buf = calloc(1, sizeof (struct pwbuf)); in nss_getpwnam()
95 pwbuf = (struct pwbuf *)*buf; in nss_getpwnam()
96 if (pwbuf == NULL) in nss_getpwnam()
113 if (pwbuf->pwd == NULL) in nss_getpwnam()
114 pwbuf->pwd = (struct passwd *) in nss_getpwnam()
116 if (pwbuf->pwd == NULL) { in nss_getpwnam()
118 if (pwbuf->spwd) in nss_getpwnam()
119 free(pwbuf->spwd); in nss_getpwnam()
[all …]
H A Dfiles_attr.c77 struct pwbuf { struct
221 struct pwbuf *pwbuf; in files_getpwnam() local
224 *buf = calloc(1, sizeof (struct pwbuf)); in files_getpwnam()
225 pwbuf = (struct pwbuf *)*buf; in files_getpwnam()
226 if (pwbuf == NULL) in files_getpwnam()
243 if (pwbuf->pwd == NULL) { in files_getpwnam()
244 pwbuf->pwd = malloc(sizeof (struct passwd)); in files_getpwnam()
245 if (pwbuf->pwd == NULL) { in files_getpwnam()
267 if (pwbuf->spwd == NULL) { in files_getpwnam()
268 pwbuf->spwd = malloc(sizeof (struct spwd)); in files_getpwnam()
[all …]
/titanic_41/usr/src/cmd/eeprom/sparc/
H A Dopenprom.c419 char pwbuf[PW_SIZE + 2]; in i_secure() local
446 if (get_password(pwbuf, PW_SIZE)) { in i_secure()
448 pwbuf); in i_secure()
449 opp2->oprom_size = varlen2 + strlen(pwbuf); in i_secure()
488 char pwbuf[PW_SIZE + 2]; in i_passwd() local
507 if (get_password(pwbuf, PW_SIZE)) { in i_passwd()
508 (void) strcpy(opp->oprom_array + varlen, pwbuf); /* Bounded */ in i_passwd()
509 opp->oprom_size = varlen + strlen(pwbuf); in i_passwd()
529 static char pwbuf[256]; in get_password() local
537 (void) strcpy(pwbuf, pasword); in get_password()
[all …]
/titanic_41/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_pwdutil.c257 smb_pwbuf_t pwbuf; in smb_pwd_getpwnam() local
273 pwbuf.pw_pwd = smbpw; in smb_pwd_getpwnam()
275 while (smb_pwd_fgetent(fp, &pwbuf, SMB_PWD_GETF_ALL) != NULL) { in smb_pwd_getpwnam()
306 smb_pwbuf_t pwbuf; in smb_pwd_getpwuid() local
322 pwbuf.pw_pwd = smbpw; in smb_pwd_getpwuid()
324 while (smb_pwd_fgetent(fp, &pwbuf, SMB_PWD_GETF_ALL) != NULL) { in smb_pwd_getpwuid()
473 smb_pwbuf_t pwbuf; in smb_pwd_update() local
513 pwbuf.pw_pwd = &smbpw; in smb_pwd_update()
519 while (smb_pwd_fgetent(src, &pwbuf, SMB_PWD_GETF_ALL) != NULL) { in smb_pwd_update()
524 err = smb_pwd_fputent(dst, &pwbuf); in smb_pwd_update()
[all …]
/titanic_41/usr/src/lib/pam_modules/smbfs/
H A Dsmbfs_login.c63 struct passwd pwbuf; in pam_sm_setcred() local
92 if (getpwnam_r(user, &pwbuf, buf, sizeof (buf)) == NULL) { in pam_sm_setcred()
97 uid = pwbuf.pw_uid; in pam_sm_setcred()
98 home = pwbuf.pw_dir; in pam_sm_setcred()
/titanic_41/usr/src/uts/common/fs/smbsrv/
H A Dsmb_tree_connect.c248 uint8_t *pwbuf = NULL; in smb_pre_tree_connect_andx() local
256 pwbuf = smb_srm_zalloc(sr, pwlen); in smb_pre_tree_connect_andx()
258 rc = smbsr_decode_data(sr, "%#cus", sr, pwlen, pwbuf, in smb_pre_tree_connect_andx()
262 tcon->password = (char *)pwbuf; in smb_pre_tree_connect_andx()
/titanic_41/usr/src/lib/pam_modules/authtok_check/
H A Dauthtok_check.c710 char *pwbuf, *opwbuf; in pam_sm_chauthtok() local
743 (void) pam_get_item(pamh, PAM_AUTHTOK, (void **)&pwbuf); in pam_sm_chauthtok()
745 if (pwbuf == NULL) in pam_sm_chauthtok()
817 pwlen = strlen(pwbuf); in pam_sm_chauthtok()
829 switch (check_circular(usrname, pwbuf)) { in pam_sm_chauthtok()
854 if (__check_history(usrname, pwbuf, pwu_rep) == PWU_SUCCESS) { in pam_sm_chauthtok()
868 if (check_composition(pwbuf, &pwdef, pamh, flags) != 0) { in pam_sm_chauthtok()
874 if (check_diff(pwbuf, opwbuf, &pwdef, pamh, flags) != 0) { in pam_sm_chauthtok()
881 retcode = check_dictionary(pwbuf, &pwdef, pamh, flags); in pam_sm_chauthtok()
/titanic_41/usr/src/lib/nsswitch/nis/common/
H A Dgetgrent.c261 char pwbuf[NSS_BUFLEN_PASSWD]; in netid_lookup() local
276 if ((getpwnam_r(argp->username, &pw, pwbuf, sizeof (pwbuf)) == NULL) || in netid_lookup()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dimport_name.c133 char pwbuf[BUFSIZ]; local
157 if (k5_getpwuid_r(uid, &pwx, pwbuf, sizeof(pwbuf), &pw) == 0)
/titanic_41/usr/src/lib/librestart/common/
H A Dlibrestart.c2042 if (mcp->pwbuf != NULL && mcp->pwd.pw_uid == mcp->uid) in lookup_pwd()
2045 if (mcp->pwbuf == NULL) { in lookup_pwd()
2048 mcp->pwbuf = malloc(mcp->pwbufsz); in lookup_pwd()
2049 if (mcp->pwbuf == NULL) in lookup_pwd()
2055 pwdp = getpwuid_r(mcp->uid, &mcp->pwd, mcp->pwbuf, in lookup_pwd()
2061 free(mcp->pwbuf); in lookup_pwd()
2062 mcp->pwbuf = NULL; in lookup_pwd()
2122 if (ci->pwbuf == NULL) { in get_uid()
2124 ci->pwbuf = malloc(ci->pwbufsz); in get_uid()
2125 if (ci->pwbuf == NULL) in get_uid()
[all …]
H A Dlibrestart.h288 char *pwbuf; member
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dkuserok.c281 char pwbuf[BUFSIZ]; in krb5_kuserok() local
283 if (k5_getpwnam_r(luser, &pwx, pwbuf, sizeof(pwbuf), &pwd) != 0) in krb5_kuserok()
/titanic_41/usr/src/lib/libnsl/rpc/
H A Dnetnamer.c316 char pwbuf[NSS_LINELEN_PASSWD]; in netname2user_ldap() local
340 if ((getpwuid_r(uidnu, &pw, pwbuf, sizeof (pwbuf))) == NULL) { in netname2user_ldap()
/titanic_41/usr/src/lib/libsecdb/common/
H A Dchkauthattr.c403 char pwbuf[NSS_BUFLEN_PASSWD]; in is_cons_user() local
411 if (getpwnam_r(user, &pw, pwbuf, sizeof (pwbuf)) == NULL) { in is_cons_user()
/titanic_41/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsmb_logon.c613 char pwbuf[1024]; in smb_token_setup_local() local
624 if (getpwuid_r(smbpw->pw_uid, &pw, pwbuf, sizeof (pwbuf)) == NULL) in smb_token_setup_local()
914 char pwbuf[1024]; in smb_guest_account() local
932 if (getpwuid_r(guest_uid, &pw, pwbuf, sizeof (pwbuf)) == NULL) in smb_guest_account()
/titanic_41/usr/src/cmd/ypcmd/yppasswd/
H A Dchangepasswd.c106 char pwbuf[NSS_LINELEN_PASSWD], spbuf[NSS_LINELEN_SHADOW]; in changepasswd() local
334 while (fgets(pwbuf, NSS_LINELEN_PASSWD, opwfp)) { in changepasswd()
341 if (doneflag || strncmp(name, pwbuf, namelen)) { in changepasswd()
342 if (fputs(pwbuf, npwfp) == EOF) { in changepasswd()
/titanic_41/usr/src/cmd/allocate/
H A Dadd_allocatable.c70 char pwbuf[NSS_LINELEN_PASSWD]; in main() local
119 if ((getpwuid_r(uid, &pwd, pwbuf, sizeof (pwbuf))) == NULL) { in main()
/titanic_41/usr/src/lib/pam_modules/unix_cred/
H A Dunix_cred.c194 char pwbuf[NSS_BUFLEN_PASSWD]; in pam_sm_setcred() local
270 if (getpwnam_r(user, &pwd, pwbuf, sizeof (pwbuf)) == NULL) { in pam_sm_setcred()
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_file.c223 char pwbuf[BUFSIZ]; in profile_open_file() local
226 if (!k5_getpwuid_r(uid, &pwx, pwbuf, sizeof(pwbuf), &pw) in profile_open_file()
/titanic_41/usr/src/cmd/zlogin/
H A Dzlogin.c996 zone_get_user_pw(const char *user_cmd, struct passwd *pwent, char *pwbuf, in zone_get_user_pw() argument
1023 if (str2passwd(pwline, sizeof (pwline), pwent, pwbuf, pwbuflen) == 0) in zone_get_user_pw()
1248 char pwbuf[NSS_BUFLEN_PASSWD + 1]; in prep_env_noninteractive() local
1261 pw = zone_get_user_pw(user_cmd, &pwent, pwbuf, sizeof (pwbuf)); in prep_env_noninteractive()
/titanic_41/usr/src/lib/libsmbfs/smb/
H A Dctx.c1500 char pwbuf[NSS_BUFLEN_PASSWD]; in smb_ctx_readrc() local
1512 if (getpwuid_r(getuid(), &pw, pwbuf, sizeof (pwbuf)) != NULL) { in smb_ctx_readrc()
/titanic_41/usr/src/lib/krb5/kadm5/srv/
H A Dsvr_principal.c1472 char pwbuf[256]; in kadm5_chpass_principal_3() local
1476 strncpy (pwbuf, password, pwlen); in kadm5_chpass_principal_3()
1477 pwbuf[pwlen] = '\n'; in kadm5_chpass_principal_3()
1478 pwbuf[pwlen + 1] = '\0'; in kadm5_chpass_principal_3()
1490 ret = kadm5_launch_task (handle->context, path, argv, pwbuf); in kadm5_chpass_principal_3()
/titanic_41/usr/src/cmd/fs.d/nfs/mountd/
H A Dmountd.c2173 char *pwbuf = alloca(pw_size); in getusergroups() local
2177 if (getpwuid_r(uid, &pwd, pwbuf, pw_size) == NULL) in getusergroups()
/titanic_41/usr/src/cmd/syslogd/
H A Dsyslogd.c2119 char pwbuf[MAXLINE]; in writetodev() local
2148 } else if (getpwuid_r(statb.st_uid, &pw, pwbuf, in writetodev()
2149 sizeof (pwbuf), &pwp) != 0) { in writetodev()
/titanic_41/usr/src/cmd/svc/configd/
H A Drc_node.c1539 char pwbuf[1024]; /* XXX should be NSS_BUFLEN_PASSWD */ in perm_granted() local
1565 if (getpwuid_r(uid, &pw, pwbuf, sizeof (pwbuf)) == NULL) { in perm_granted()