/osnet-11/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));
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | pname_to_uid.c | 61 struct passwd *pw; local 85 if (pw = getpwnam(lname)) 87 *uidOut = pw->pw_uid;
|
H A D | acquire_cred_with_pw.c | 119 char *pw; local 125 pw = strdup(""); 127 pw = strdup(password->value); 129 pw = malloc(password->length + 1); 130 if (pw == NULL) { 134 *pw = '\0'; 135 (void) strlcat(pw, password->value, password->length + 1); 138 if (pw == NULL) { 148 pw, 190 if (pw) [all...] |
H A D | import_name.c | 99 struct passwd *pw; local 204 if (k5_getpwuid_r(uid, &pwx, pwbuf, sizeof(pwbuf), &pw) == 0) 205 stringrep = pw->pw_name;
|
/osnet-11/usr/src/cmd/hal/hald/ |
H A D | util_helper.c | 96 struct passwd *pw = NULL; local 100 pw = getpwnam (HAL_USER); 101 if (!pw) { 125 if (setuid (pw->pw_uid)) {
|
/osnet-11/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)) {
|
H A D | mailcompat.c | 57 struct passwd *pw; local 86 pw = getpwnam(myname); 87 if (pw == NULL) 92 homedir = newstr(pw->pw_dir);
|
H A D | praliases.c | 69 struct passwd *pw; local 77 pw = getpwuid(RealUid); 78 if (pw != NULL) 80 if (strlen(pw->pw_name) > MAXNAME - 1) 81 pw->pw_name[MAXNAME] = 0; 82 sm_snprintf(rnamebuf, sizeof rnamebuf, "%s", pw->pw_name);
|
/osnet-11/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);
|
/osnet-11/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;
|
/osnet-11/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;
|
/osnet-11/usr/src/lib/pam_modules/smbfs/ |
H A D | smbfs_login.c | 58 char *pw; local 95 (void) pam_get_item(pamh, PAM_AUTHTOK, (void **)&pw); 96 if (pw == NULL) { 113 res = smbfs_keychain_add(uid, dom, user, pw, B_FALSE);
|
/osnet-11/usr/src/lib/libresolv2/common/irs/ |
H A D | irs_data.h | 30 struct irs_pw * pw; member in struct:net_data
|
H A D | gen_p.h | 71 struct irs_pw * pw; member in struct:irs_inst
|
/osnet-11/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...] |
H A D | utils.c | 64 free_pwd(struct passwd *pw) argument 66 if (pw->pw_name) free(pw->pw_name); 67 if (pw->pw_passwd) free(pw->pw_passwd); 68 if (pw->pw_gecos) free(pw->pw_gecos); 69 if (pw->pw_dir) free(pw->pw_dir); 70 if (pw 238 struct passwd pw; local [all...] |
/osnet-11/usr/src/lib/libfedfs/common/ |
H A D | nsdb_add.c | 44 nsdb_add(char *nsdb, int port, char *nce, char *admin, char *pw, int createfsn, argument 67 nsdb, port, admin, pw); 69 ld = nsdb_connect(nsdb, port, admin, pw); 177 nsdb_remove(char *nsdb, int port, char *nce, char *admin, char *pw, argument 185 if (nsdb == NULL || admin == NULL || pw == NULL || fsn == NULL) { 192 fprintf(stderr, "nsdb_remove: nsdb=%s, port=%d, admin=%s, pw=%s, rem=%d" 193 ", fsn=%s, fsl=%s\n", nsdb, port, admin, pw, removefsn, fsn, fsl); 199 ld = nsdb_connect(nsdb, port, admin, pw); 273 nsdb_remove_all(char *host, int port, char *nce, char *admin, char *pw, argument 279 ret = nsdb_remove(host, port, nce, admin, pw, [all...] |
/osnet-11/usr/src/lib/nsswitch/compat/common/ |
H A D | getpwent.c | 183 struct passwd *pw = (struct passwd *)argp->buf.result; local 206 pw->pw_name, fields[1]); 209 if (pw->pw_age != 0 && *pw->pw_age != '\0') 211 pw->pw_name, pw->pw_passwd, pw->pw_age); 214 pw->pw_name, pw->pw_passwd); 225 pw [all...] |
/osnet-11/usr/src/lib/nsswitch/nis/common/ |
H A D | getgrent.c | 260 struct passwd pw; local 276 if ((getpwnam_r(argp->username, &pw, pwbuf, sizeof (pwbuf)) == NULL) || 277 (pw.pw_uid == 0)) { 281 pw.pw_uid, domain) < 0) {
|
/osnet-11/usr/src/lib/policykit/libpolkit/common/ |
H A D | libpolkit-rbac.c | 130 struct passwd *pw; local 138 if ((pw = getpwuid (uid)) == NULL) { 177 *out_is_allowed = (chkauthattr(authname, pw->pw_name) != 0);
|
/osnet-11/usr/src/lib/libsmbfs/common/ |
H A D | smbfs_pwdutil.c | 359 smbfs_passwd_t *pw; local 378 pw = pwbuf->pw_pwd; 379 bzero(pw, sizeof (smbfs_passwd_t)); 380 pw->pw_uid = strtoul(argv[SMBFS_PWD_UID], 0, 10); 381 (void) strlcpy(pw->pw_dom, argv[SMBFS_PWD_DOMAIN], 382 sizeof (pw->pw_dom)); 383 (void) strlcpy(pw->pw_usr, argv[SMBFS_PWD_USER], sizeof (pw->pw_usr)); 388 (char *)pw->pw_lmhash, SMBAUTH_HASH_SZ); 396 (char *)pw 411 smbfs_passwd_t *pw = pwbuf->pw_pwd; local [all...] |
/osnet-11/usr/src/lib/libnsl/key/ |
H A D | xcrypt.c | 161 passwd2des(pw, key) 162 char *pw; 168 for (i = 0; *pw; i = (i+1) % 8) { 169 key[i] ^= *pw++ << 1; 462 const char *pw, 486 plen = strlen(pw); 502 (void) memcpy(text, pw, plen); 505 for (i = 0, j = 0; pw[j]; j++) { 506 tkey.c[i] ^= pw[j] << 1; 530 (void) memcpy(&text[len], pw, ple 461 passwd2des_g( const char *pw, const char *mixin, int len, des_block *key, bool_t altalg) argument [all...] |
/osnet-11/usr/src/lib/libnsl/rpc/ |
H A D | netnamer.c | 310 struct passwd pw; local 338 if ((getpwuid_r(uidnu, &pw, pwbuf, sizeof (pwbuf))) == NULL) { 343 *(argp->uidp) = pw.pw_uid; 344 *(argp->gidp) = pw.pw_gid; 348 groups[0] = pw.pw_gid; 350 ngroups = _getgroupsbymember(pw.pw_name, groups, maxgrp, 351 (pw.pw_gid <= MAXUID) ? 1 : 0);
|