/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | ncgrpw.c | 635 struct passwd *pw; in clpwnam() local 650 while ((pw = fgetpwent(pw_ptr)) != NULL) { in clpwnam() 651 if (strcmp(pw->pw_name, nam) == 0) { in clpwnam() 658 return (pw); in clpwnam() 712 struct passwd *pw; in clpwuid() local 726 while ((pw = fgetpwent(pw_ptr)) != NULL) { in clpwuid() 727 if (pw->pw_uid == uid) { in clpwuid() 734 return (pw); in clpwuid()
|
/illumos-gate/usr/src/lib/pam_modules/dhkeys/ |
H A D | dhkeys.c | 101 const char *pw, /* in */ in get_and_set_seckey() argument 120 if (getsecretkey_g(netname, keylen, algtype, skey, skeylen, pw)) { in get_and_set_seckey() 206 struct passwd pw; /* Needed to obtain uid */ in establish_key() local 231 if (getpwnam_r(user, &pw, scratch, scratchlen) == NULL) { in establish_key() 236 uid = pw.pw_uid; in establish_key() 237 gid = pw.pw_gid; in establish_key()
|
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | irs_data.c | 79 if (net_data->pw != NULL) { in net_data_destroy() 80 (*net_data->pw->close)(net_data->pw); in net_data_destroy() 81 net_data->pw = NULL; in net_data_destroy()
|
/illumos-gate/usr/src/cmd/sendmail/util/ |
H A D | mailcompat.c | 60 struct passwd *pw; local 89 pw = getpwnam(myname); 90 if (pw == NULL) 95 homedir = newstr(pw->pw_dir);
|
H A D | vacation.c | 115 struct passwd *pw; local 214 pw = getpwuid(getuid()); 216 pw = getpwnam(myname); 217 if (pw == NULL) 223 homedir = newstr(pw->pw_dir); 1029 struct passwd *pw; in AutoInstall() local 1033 pw = getpwuid(getuid()); in AutoInstall() 1034 if (pw == NULL) { in AutoInstall() 1038 myname = strdup(pw->pw_name); in AutoInstall()
|
/illumos-gate/usr/src/cmd/print/lpset/ |
H A D | lpset.c | 54 struct passwd *pw; in authorized() local 63 if (((pw = getpwnam("lp")) != NULL) && (uid == pw->pw_uid)) in authorized() 66 if ((pw = getpwuid(uid)) == NULL) in authorized() 69 if (chkauthattr("solaris.print.admin", pw->pw_name) == 1) in authorized()
|
/illumos-gate/usr/src/lib/nsswitch/nis/common/ |
H A D | getgrent.c | 260 struct passwd pw; in netid_lookup() local 276 if ((getpwnam_r(argp->username, &pw, pwbuf, sizeof (pwbuf)) == NULL) || in netid_lookup() 277 (pw.pw_uid == 0)) { in netid_lookup() 281 pw.pw_uid, domain) < 0) { in netid_lookup()
|
/illumos-gate/usr/src/lib/pam_modules/authtok_check/ |
H A D | authtok_check.c | 437 check_composition(char *pw, struct pwdefaults *pwdef, pam_handle_t *pamh, in check_composition() argument 458 for (w = pw; significant != 0 && *w != '\0'; w++, significant--) { in check_composition() 492 if (pwdef->maxlength < strlen(pw)) in check_composition() 604 check_diff(char *pw, char *opw, struct pwdefaults *pwdef, pam_handle_t *pamh, in check_diff() argument 614 pwlen = MIN(strlen(pw), max); in check_diff() 622 while (*opw != '\0' && *pw != '\0' && max-- != 0) { in check_diff() 623 if (*opw != *pw) in check_diff() 626 pw++; in check_diff() 650 check_dictionary(char *pw, struct pwdefaults *pwdef, pam_handle_t *pamh, in check_dictionary() argument 672 crack_ret = DictCheck(pw, pwdef->db_location); in check_dictionary()
|
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSPosix/ |
H A D | PosixDaemon.c | 219 const struct passwd *pw = getpwnam(MDNSD_USER); in main() local 220 if (pw != NULL) in main() 222 if (setgid(pw->pw_gid) < 0) in main() 227 if (setuid(pw->pw_uid) < 0) in main()
|
/illumos-gate/usr/src/cmd/krb5/kadmin/kpasswd/ |
H A D | kpasswd.c | 111 struct passwd *pw = 0; local 170 pw = getpwuid( getuid()); 171 if (pw == NULL) { 175 princ_str = strdup(pw->pw_name);
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | ctx.c | 462 char *dom, *usr, *pw, *p; in smb_ctx_parseunc() local 474 dom = usr = pw = host = NULL; in smb_ctx_parseunc() 509 pw = strchr(p, ':'); in smb_ctx_parseunc() 510 if (pw) in smb_ctx_parseunc() 511 *pw++ = '\0'; in smb_ctx_parseunc() 552 if (pw != NULL) { in smb_ctx_parseunc() 553 error = smb_ctx_setpassword(ctx, pw, TRUE); in smb_ctx_parseunc() 897 struct passwd pw; in smb_parse_owner() local 914 *uid = pw.pw_uid; in smb_parse_owner() 1650 struct passwd pw; in smb_ctx_readrc() local [all …]
|
H A D | ntlm.h | 51 ntlm_compute_lm_hash(uchar_t *hash, const char *pw); 54 ntlm_compute_nt_hash(uchar_t *hash, const char *pw);
|
/illumos-gate/usr/src/uts/sparc/fpu/ |
H A D | pack.c | 360 uint_t *pw) /* 4th word of extended significand */ in packextended() argument 369 *pw = 0; in packextended() 377 *pw = 0; in packextended() 389 *pw = pu->significand[3]; in packextended() 417 *pw = pu->significand[3]; in packextended() 434 *pw = 0xffffffffU; in packextended() 441 *pw = pu->significand[3]; in packextended()
|
/illumos-gate/usr/src/lib/libm/common/R/ |
H A D | nextafterf.c | 37 int *pw = (int *) &w; in nextafterf() local 63 pw[0] = iz; in nextafterf()
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | recipient.c | 1166 register struct passwd *pw; local 1246 sm_pwfullname(pw->pw_gecos, pw->pw_name, buf, sizeof(buf)); 1255 if (pw != NULL) 1262 if (pw == NULL) 1264 sm_mbdb_frompw(user, pw); 1747 register struct passwd *pw; local 1749 pw = sm_getpwuid(st.st_uid); 1750 if (pw == NULL) 1760 pw->pw_name); 1762 sh = pw->pw_shell; [all …]
|
/illumos-gate/usr/src/lib/policykit/libpolkit/common/ |
H A D | libpolkit-rbac.c | 128 struct passwd *pw; in libpolkit_is_uid_allowed_for_privilege() local 136 if ((pw = getpwuid (uid)) == NULL) { in libpolkit_is_uid_allowed_for_privilege() 175 *out_is_allowed = (chkauthattr(authname, pw->pw_name) != 0); in libpolkit_is_uid_allowed_for_privilege()
|
/illumos-gate/usr/src/cmd/print/bsd-sysv-commands/ |
H A D | lp.c | 83 struct passwd *pw; in main() local 89 if ((pw = getpwuid(ruid)) != NULL) in main() 90 (void) initgroups(pw->pw_name, pw->pw_gid); in main()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | main.c | 51 struct passwd *pw; /* pointer to static area used by getpwent */ variable 115 pw = getpwuid(getuid()); 116 if (pw == NULL) { 120 strncpy(user, pw->pw_name, sizeof (user)); 122 strncpy(homedir, pw->pw_dir, sizeof (homedir));
|
/illumos-gate/usr/src/cmd/oamuser/user/ |
H A D | funcs.c | 234 struct passwd *pw; in check_auth() local 244 pw = getpwuid(getuid()); in check_auth() 245 if (pw == NULL) { in check_auth() 254 if (!chkauthattr(authname, pw->pw_name)) in check_auth() 285 if (chkauthattr(authtoks, pw->pw_name)) in check_auth()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | main.c | 139 struct passwd *pw = NULL; in main() local 296 pw = getpwnam(cp); in main() 298 if (pw == NULL) in main() 299 pw = getpwuid(getuid()); in main() 300 if (pw != NULL) { in main() 302 (void) strcpy(home, pw->pw_dir); in main()
|
/illumos-gate/usr/src/cmd/vscan/vscand/ |
H A D | vs_stats.c | 121 struct passwd *pw; in vs_stats_check_auth() local 127 ((pw = getpwuid(uid)) == NULL) || in vs_stats_check_auth() 128 (chkauthattr(VS_VALUE_AUTH, pw->pw_name) != 1)) { in vs_stats_check_auth()
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.file.c | 334 struct passwd *pw; in tilde() local 351 pw = getpwnam(tstostr(person_, person)); in tilde() 352 if (pw == NULL) in tilde() 354 pw_dir = strtots((tchar *)NULL, pw->pw_dir); /* allocate */ in tilde() 477 struct passwd *pw; in getentry() local 488 if ((pw = getpwent()) == NULL) in getentry() 490 return (strtots(strbuf, pw->pw_name)); in getentry()
|
/illumos-gate/usr/src/cmd/power/ |
H A D | sys-suspend.c | 581 struct passwd *pw; in main() local 675 pw = getpwuid(getuid()); in main() 676 (void) strncpy(user, pw->pw_name, NMAX); in main() 679 (chkauthattr(AUTHNAME_SHUTDOWN, pw->pw_name) != 1)) { in main() 685 (chkauthattr(AUTHNAME_SUSPEND, pw->pw_name) != 1)) { in main()
|
/illumos-gate/usr/src/cmd/crypt/ |
H A D | crypt.c | 51 setup(pw) in setup() argument 52 char *pw; in setup() 61 (void) strncpy(buf, pw, 8);
|
/illumos-gate/usr/src/cmd/auths/ |
H A D | auths.c | 93 struct passwd *pw; in show_auths() local 98 if ((pw = getpwuid(getuid())) == NULL) { in show_auths() 104 username = pw->pw_name; in show_auths()
|