Searched defs:pw (Results 1 - 25 of 72) sorted by relevance

123

/osnet-11/usr/src/lib/libnsl/yp/
H A Dyppasswd_xdr.c35 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 Dpname_to_uid.c61 struct passwd *pw; local
85 if (pw = getpwnam(lname))
87 *uidOut = pw->pw_uid;
H A Dacquire_cred_with_pw.c119 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 Dimport_name.c99 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 Dutil_helper.c96 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 Dmailq.c42 struct passwd *pw = getpwuid(getuid()); local
46 if (pw && chkauthattr(MAILQ_AUTH, pw->pw_name)) {
H A Dmailcompat.c57 struct passwd *pw; local
86 pw = getpwnam(myname);
87 if (pw == NULL)
92 homedir = newstr(pw->pw_dir);
H A Dpraliases.c69 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 Dcuserid.c47 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 Dfmtuid.c64 register struct passwd* pw; local
78 if (pw = getpwuid(uid))
80 name = pw->pw_name;
H A Dstrgid.c74 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 Dstruid.c68 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 Dsample_acct_mgmt.c80 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 Dsmbfs_login.c58 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 Dirs_data.h30 struct irs_pw * pw; member in struct:net_data
H A Dgen_p.h71 struct irs_pw * pw; member in struct:irs_inst
/osnet-11/usr/src/lib/passwdutil/
H A Dnss_attr.c222 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 Dutils.c64 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 Dnsdb_add.c44 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 Dgetpwent.c183 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 Dgetgrent.c260 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 Dlibpolkit-rbac.c130 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 Dsmbfs_pwdutil.c359 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 Dxcrypt.c161 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 Dnetnamer.c310 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);

Completed in 83 milliseconds

123