Searched refs:pwbuf (Results 1 - 19 of 19) sorted by relevance

/osnet-11/usr/src/lib/passwdutil/
H A Dnss_attr.c64 struct pwbuf { struct
89 struct pwbuf *pwbuf; local
93 *buf = calloc(1, sizeof (struct pwbuf));
94 pwbuf = (struct pwbuf *)*buf;
95 if (pwbuf == NULL)
112 if (pwbuf->pwd == NULL)
113 pwbuf->pwd = (struct passwd *)
115 if (pwbuf
221 struct pwbuf *pwbuf; local
[all...]
H A Dfiles_attr.c78 struct pwbuf { struct
213 struct pwbuf *pwbuf; local
216 *buf = calloc(1, sizeof (struct pwbuf));
217 pwbuf = (struct pwbuf *)*buf;
218 if (pwbuf == NULL)
235 if (pwbuf->pwd == NULL) {
236 pwbuf->pwd = malloc(sizeof (struct passwd));
237 if (pwbuf
327 struct pwbuf *pwbuf; local
467 struct pwbuf *pwbuf; local
636 struct pwbuf *pwbuf = (struct pwbuf *)buf; local
1124 struct pwbuf *pwbuf = (struct pwbuf *)buf; local
[all...]
H A Dutils.c237 char pwbuf[NSS_BUFLEN_PASSWD]; local
240 if (getpwuid_r(getuid(), &pw, pwbuf, sizeof (pwbuf)) != NULL) {
/osnet-11/usr/src/lib/libsmbfs/common/
H A Dsmbfs_pwdutil.c71 smbfs_pwbuf_t pwbuf; local
85 pwbuf.pw_pwd = &smbpw;
87 while (smbfs_pwd_fgetent(fp, &pwbuf) != NULL) {
117 smbfs_pwbuf_t pwbuf, newpwbuf; local
148 pwbuf.pw_pwd = &smbpw;
155 while (smbfs_pwd_fgetent(src, &pwbuf) != NULL) {
167 err = smbfs_pwd_fputent(dst, &pwbuf);
190 err = smbfs_pwd_fputent(dst, &pwbuf);
202 while (smbfs_pwd_fgetent(src, &pwbuf) != NULL) {
203 err = smbfs_pwd_fputent(dst, &pwbuf);
252 smbfs_pwbuf_t pwbuf; local
355 smbfs_pwd_fgetent(FILE *fp, smbfs_pwbuf_t *pwbuf) argument
409 smbfs_pwd_fputent(FILE *fp, const smbfs_pwbuf_t *pwbuf) argument
[all...]
H A Dsmbfs_util.c413 char *npw, *p, pwbuf[256], buf[256]; local
432 npw = fgets(pwbuf, sizeof (pwbuf), stdin);
435 if ((p = strchr(pwbuf, '\n')) != NULL)
H A Dsmbfs_ctx.c1056 char pwbuf[NSS_BUFLEN_PASSWD]; local
1063 if (getpwuid_r(getuid(), &pw, pwbuf, sizeof (pwbuf)) != NULL) {
/osnet-11/usr/src/lib/pam_modules/smbfs/
H A Dsmbfs_login.c60 struct passwd pwbuf; local
88 if (getpwnam_r(user, &pwbuf, buf, sizeof (buf)) == NULL) {
93 uid = pwbuf.pw_uid;
/osnet-11/usr/src/lib/libsmb/common/
H A Dsmb_pwdutil.c266 smb_pwbuf_t pwbuf; local
282 pwbuf.pw_pwd = smbpw;
284 while (smb_pwd_fgetent(fp, &pwbuf, SMB_PWD_GETF_ALL) != NULL) {
433 smb_pwbuf_t pwbuf; local
473 pwbuf.pw_pwd = &smbpw;
479 while (smb_pwd_fgetent(src, &pwbuf, SMB_PWD_GETF_ALL) != NULL) {
484 err = smb_pwd_fputent(dst, &pwbuf);
487 err = smb_pwd_fputent(dst, &pwbuf);
504 err = smb_pwd_fputent(dst, &pwbuf);
554 * Parse the buffer in the passed pwbuf an
564 smb_pwd_fgetent(FILE *fp, smb_pwbuf_t *pwbuf, uint32_t flags) argument
681 smb_pwd_fputent(FILE *fp, const smb_pwbuf_t *pwbuf) argument
734 smb_pwbuf_t pwbuf; local
942 smb_pwbuf_t pwbuf; local
[all...]
/osnet-11/usr/src/lib/pam_modules/authtok_check/
H A Dauthtok_check.c713 char *pwbuf, *opwbuf; local
746 (void) pam_get_item(pamh, PAM_AUTHTOK, (void **)&pwbuf);
748 if (pwbuf == NULL)
820 pwlen = strlen(pwbuf);
832 switch (check_circular(usrname, pwbuf)) {
857 if (__check_history(usrname, pwbuf, pwu_rep) == PWU_SUCCESS) {
871 if (check_composition(pwbuf, &pwdef, pamh, flags) != 0) {
877 if (check_diff(pwbuf, opwbuf, &pwdef, pamh, flags) != 0) {
884 retcode = check_dictionary(pwbuf, &pwdef, pamh, flags);
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dkuserok.c276 char pwbuf[BUFSIZ]; local
281 if (k5_getpwnam_r(luser, &pwx, pwbuf, sizeof(pwbuf), &pwd) != 0)
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dimport_name.c180 char pwbuf[BUFSIZ]; local
204 if (k5_getpwuid_r(uid, &pwx, pwbuf, sizeof(pwbuf), &pw) == 0)
/osnet-11/usr/src/lib/nsswitch/nis/common/
H A Dgetgrent.c261 char pwbuf[NSS_BUFLEN_PASSWD]; local
276 if ((getpwnam_r(argp->username, &pw, pwbuf, sizeof (pwbuf)) == NULL) ||
/osnet-11/usr/src/lib/pam_modules/zfs_key/
H A Dzfs_key.c181 char pwbuf[NSS_BUFLEN_PASSWD]; local
232 (getpwnam_r(user, &pw, pwbuf, sizeof (pwbuf)) == NULL)) {
442 char pwbuf[NSS_BUFLEN_PASSWD]; local
475 (getpwnam_r(user, &pw, pwbuf, sizeof (pwbuf)) == NULL)) {
/osnet-11/usr/src/lib/libnsl/rpc/
H A Dnetnamer.c314 char pwbuf[NSS_LINELEN_PASSWD]; local
338 if ((getpwuid_r(uidnu, &pw, pwbuf, sizeof (pwbuf))) == NULL) {
/osnet-11/usr/src/lib/librestart/common/
H A Dlibrestart.h292 char *pwbuf; member in struct:method_context
H A Dlibrestart.c2214 if (mcp->pwbuf != NULL && mcp->pwd.pw_uid == mcp->uid)
2217 if (mcp->pwbuf == NULL) {
2220 mcp->pwbuf = malloc(mcp->pwbufsz);
2221 if (mcp->pwbuf == NULL)
2227 pwdp = getpwuid_r(mcp->uid, &mcp->pwd, mcp->pwbuf,
2233 free(mcp->pwbuf);
2234 mcp->pwbuf = NULL;
2294 if (ci->pwbuf == NULL) {
2296 ci->pwbuf = malloc(ci->pwbufsz);
2297 if (ci->pwbuf
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/profile/
H A Dprof_file.c230 char pwbuf[BUFSIZ]; local
233 if (!k5_getpwuid_r(uid, &pwx, pwbuf, sizeof(pwbuf), &pw)
/osnet-11/usr/src/lib/libc/port/gen/
H A Dchkauthattr.c164 char pwbuf[NSS_BUFLEN_PASSWD]; local
193 getpwnam_r(username, &pw, pwbuf, sizeof (pwbuf)) != NULL &&
/osnet-11/usr/src/lib/pam_modules/unix_cred/
H A Dunix_cred.c231 char pwbuf[NSS_BUFLEN_PASSWD]; local
304 if (getpwnam_r(user, &pwd, pwbuf, sizeof (pwbuf)) == NULL) {

Completed in 97 milliseconds