/illumos-gate/usr/src/lib/libbc/libc/stdio/common/ |
H A D | cuserid.c | 40 register struct passwd *pw; local 48 pw = getpwuid(getuid()); 50 if (pw != NULL) 51 return (strcpy(s, pw->pw_name));
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | pname_to_uid.c | 63 struct passwd *pw; local 86 if (pw = getpwnam(lname)) 88 *uidOut = pw->pw_uid;
|
H A D | import_name.c | 65 struct passwd *pw; local 157 if (k5_getpwuid_r(uid, &pwx, pwbuf, sizeof(pwbuf), &pw) == 0) 158 stringrep = pw->pw_name;
|
H A D | acquire_cred_with_pw.c | 123 char *pw; local 129 pw = strdup(""); 131 pw = strdup(password->value); 133 pw = malloc(password->length + 1); 134 if (pw == NULL) { 138 *pw = '\0'; 139 (void) strlcat(pw, password->value, password->length + 1); 142 if (pw == NULL) { 149 code = krb5_get_init_creds_password(context, &creds, desired_name, pw, 191 if (pw) [all...] |
/illumos-gate/usr/src/lib/libnsl/yp/ |
H A D | yppasswd_xdr.c | 35 xdr_passwd(XDR *xdrsp, struct passwd *pw) argument 37 if (!xdr_wrapstring(xdrsp, &pw->pw_name)) 39 if (!xdr_wrapstring(xdrsp, &pw->pw_passwd)) 41 if (!xdr_int(xdrsp, (int *)&pw->pw_uid)) 43 if (!xdr_int(xdrsp, (int *)&pw->pw_gid)) 45 if (!xdr_wrapstring(xdrsp, &pw->pw_gecos)) 47 if (!xdr_wrapstring(xdrsp, &pw->pw_dir)) 49 return (xdr_wrapstring(xdrsp, &pw->pw_shell));
|
/illumos-gate/usr/src/lib/libbc/libc/compat/4.1/ |
H A D | getpw.c | 34 struct passwd *pw; local 37 pw = getpwuid(uid); 38 if(pw == 0) 40 strcpy(buf, pw->pw_name); 42 strcat(buf, pw->pw_passwd); 44 sprintf(numbuf, "%d", pw->pw_uid); 47 sprintf(numbuf, "%d", pw->pw_gid); 50 strcat(buf, pw->pw_gecos); 52 strcat(buf, pw->pw_dir); 54 strcat(buf, pw [all...] |
/illumos-gate/usr/src/lib/libbc/libc/compat/sys5/ |
H A D | getpw.c | 34 struct passwd *pw; local 37 pw = getpwuid(uid); 38 if(pw == 0) 40 strcpy(buf, pw->pw_name); 42 strcat(buf, pw->pw_passwd); 43 if (*pw->pw_age != '\0') { 45 strcat(buf, pw->pw_age); 48 sprintf(numbuf, "%d", pw->pw_uid); 51 sprintf(numbuf, "%d", pw->pw_gid); 54 strcat(buf, pw [all...] |
/illumos-gate/usr/src/cmd/ypcmd/yppasswd/ |
H A D | yppasswdxdr.c | 36 xdr_passwd(XDR *xdrs, struct passwd *pw) argument 38 if (!xdr_wrapstring(xdrs, &pw->pw_name)) { 41 if (!xdr_wrapstring(xdrs, &pw->pw_passwd)) { 44 if (!xdr_uid_t(xdrs, &pw->pw_uid)) { 47 if (!xdr_gid_t(xdrs, (&pw->pw_gid))) { 50 if (!xdr_wrapstring(xdrs, &pw->pw_gecos)) { 53 if (!xdr_wrapstring(xdrs, &pw->pw_dir)) { 56 if (!xdr_wrapstring(xdrs, &pw->pw_shell)) {
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | getname.c | 59 struct passwd *pw; local 66 pw = getpwuid(uid); 67 if (pw) { 68 strcpy(namebuf, pw->pw_name); 82 struct passwd *pw; local 89 pw = getpwnam(name); 90 return pw ? pw->pw_uid : (uid_t)-1;
|
/illumos-gate/usr/src/cmd/lms/tools/ |
H A D | daemonize.cpp | 72 struct passwd *pw = getpwnam(RUN_AS_USER); local 73 if (pw) { 75 setuid(pw->pw_uid);
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | cuserid.c | 47 struct passwd *pw; local 64 } else if ((pw = getpwuid_r(getuid(), &pwd, buffer, BUFSIZ)) != NULL) { 65 (void) strlcpy(s, pw->pw_name, L_cuserid);
|
/illumos-gate/usr/src/cmd/sendmail/aux/ |
H A D | mailq.c | 42 struct passwd *pw = getpwuid(getuid()); local 46 if (pw && chkauthattr(MAILQ_AUTH, pw->pw_name)) {
|
/illumos-gate/usr/src/lib/libm/common/R/ |
H A D | nextafterf.c | 37 int *pw = (int *) &w; local 63 pw[0] = iz;
|
/illumos-gate/usr/src/cmd/roles/ |
H A D | roles.c | 76 register struct passwd *pw; local 80 if ((pw = getpwuid(getuid())) == NULL) { 85 username = pw->pw_name;
|
/illumos-gate/usr/src/cmd/fs.d/smbclnt/test/ |
H A D | tconn.c | 63 char *pw = NULL; local 81 pw = optarg; 95 if (pw != NULL && (dom == NULL || usr == NULL)) { 121 if (pw) 122 smb_ctx_setpassword(ctx, pw, NULL);
|
/illumos-gate/usr/src/cmd/groups/ |
H A D | groups.c | 65 struct passwd *pw; local 80 if ((pw = getpwuid(getuid())) == NULL) { 84 showgroups(pw); 88 if ((pw = getpwnam(*argv)) == NULL) { 95 showgroups(pw); 104 showgroups(struct passwd *pw) argument 120 groups[0] = pw->pw_gid; 122 ngroups = _getgroupsbymember(pw->pw_name, groups, ngroups_max, 1); 127 (void) printf("%d", (int)pw->pw_gid);
|
/illumos-gate/usr/src/ucbcmd/groups/ |
H A D | groups.c | 74 struct passwd *pw; local 79 if ((pw = getpwnam(user)) == NULL) { 86 if (pw->pw_gid == gr->gr_gid) {
|
/illumos-gate/usr/src/lib/libast/common/string/ |
H A D | fmtuid.c | 64 register struct passwd* pw; local 78 if (pw = getpwuid(uid)) 80 name = pw->pw_name;
|
H A D | strgid.c | 74 register struct passwd* pw; local 90 else if (pw = getpwnam(name)) 91 id = pw->pw_gid; 105 else if (pw = getpwnam("Administrator")) 106 id = pw->pw_gid;
|
H A D | struid.c | 68 register struct passwd* pw; local 82 if (pw = getpwnam(name)) 83 id = pw->pw_uid; 93 else if (streq(name, "root") && (pw = getpwnam("Administrator"))) 94 id = pw->pw_uid;
|
/illumos-gate/usr/src/lib/pam_modules/sample/ |
H A D | sample_acct_mgmt.c | 80 struct passwd *pw; local 83 pw = getpwuid(uid); 84 if (pw == NULL) 86 user = pw->pw_name;
|
/illumos-gate/usr/src/lib/pam_modules/smbfs/ |
H A D | smbfs_login.c | 61 char *pw; local 100 (void) pam_get_item(pamh, PAM_AUTHTOK, (void **)&pw); 101 if (pw == NULL) { 118 res = smbfs_keychain_add(uid, dom, user, pw);
|
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | util_helper.c | 98 struct passwd *pw = NULL; local 102 pw = getpwnam (HAL_USER); 103 if (!pw) { 127 if (setuid (pw->pw_uid)) {
|
/illumos-gate/usr/src/cmd/krb5/kadmin/kpasswd/ |
H A D | kpasswd.c | 75 * 4 new passwd mismatch or error trying to change pw 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/passwdutil/ |
H A D | nss_attr.c | 222 struct passwd *pw; local 231 pw = pwbuf->pwd; 237 if ((w->data.val_s = strdup(pw->pw_name)) == NULL) 241 if ((w->data.val_s = strdup(pw->pw_comment)) == NULL) 245 if ((w->data.val_s = strdup(pw->pw_gecos)) == NULL) 249 if ((w->data.val_s = strdup(pw->pw_dir)) == NULL) 253 if ((w->data.val_s = strdup(pw->pw_shell)) == NULL) 266 if ((w->data.val_s = strdup(pw->pw_age)) == NULL) 276 w->data.val_i = pw->pw_uid; 279 w->data.val_i = pw [all...] |