Searched refs:pw (Results 176 - 200 of 291) sorted by relevance

1234567891011>>

/freebsd-11-stable/crypto/heimdal/lib/kadm5/
H A Dent_setup.c77 heim_utf8_string pw = tl_data->tl_data_contents; local
79 if (pw[tl_data->tl_data_length] != '\0')
82 ret = hdb_entry_set_password(context, db, &ent->entry, pw);
H A Dget_s.c244 heim_utf8_string pw; local
247 context->db, &ent.entry, &pw);
249 ret = add_tl_data(out, KRB5_TL_PASSWORD, pw, strlen(pw) + 1);
250 free(pw);
/freebsd-11-stable/usr.sbin/chown/
H A Dchown.c248 struct passwd *pw; local
252 uid = ((pw = getpwnam(s)) != NULL) ? pw->pw_uid : id(s, "user");
/freebsd-11-stable/usr.sbin/fmtree/
H A Dspec.c171 struct passwd *pw; local
308 if ((pw = getpwnam(val)) == NULL)
310 ip->st_uid = pw->pw_uid;
/freebsd-11-stable/crypto/openssh/
H A Dmonitor_wrap.c246 struct passwd *pw; local
261 pw = NULL;
264 pw = buffer_get_string(&m, &len);
267 pw->pw_name = buffer_get_string(&m, NULL);
268 pw->pw_passwd = buffer_get_string(&m, NULL);
270 pw->pw_gecos = buffer_get_string(&m, NULL);
273 pw->pw_class = buffer_get_string(&m, NULL);
275 pw->pw_dir = buffer_get_string(&m, NULL);
276 pw->pw_shell = buffer_get_string(&m, NULL);
302 return (pw);
377 mm_user_key_allowed(struct passwd *pw, Key *key, int pubkey_auth_attempt) argument
384 mm_hostbased_key_allowed(struct passwd *pw, const char *user, const char *host, Key *key) argument
[all...]
H A Daudit-bsm.c265 uid = the_authctxt->pw->pw_uid;
266 gid = the_authctxt->pw->pw_gid;
310 info.ai_auid = the_authctxt->pw->pw_uid;
H A Dloginrec.c301 struct passwd *pw; local
311 pw = getpwuid(uid);
312 if (pw == NULL)
316 if (strlcpy(li->username, pw->pw_name, sizeof(li->username)) >=
319 (unsigned long)strlen(pw->pw_name),
372 struct passwd *pw; local
384 pw = getpwnam(li->username);
385 if (pw == NULL) {
389 li->uid = pw->pw_uid;
/freebsd-11-stable/sbin/mount_msdosfs/
H A Dmount_msdosfs.c256 struct passwd *pw; local
260 if ((pw = getpwnam(s)) != NULL)
261 uid = pw->pw_uid;
/freebsd-11-stable/contrib/wpa/src/crypto/
H A Daes-siv.c120 const u8 *pw, size_t pwlen,
143 _addr[num_elem] = pw;
153 os_memcpy(crypt_pw, pw, pwlen);
119 aes_siv_encrypt(const u8 *key, size_t key_len, const u8 *pw, size_t pwlen, size_t num_elem, const u8 *addr[], const size_t *len, u8 *out) argument
/freebsd-11-stable/usr.sbin/cron/cron/
H A Ddatabase.c259 struct passwd *pw = NULL; local
265 if (strcmp(fname, SYS_NAME) && !(pw = getpwnam(uname))) {
309 u = load_user(crontab_fd, pw, fname);
/freebsd-11-stable/contrib/ntp/ntpd/
H A Dntpd.c216 struct passwd *pw; variable in typeref:struct:passwd
671 if ((pw = getpwuid(sw_uid)) != NULL) {
673 user = estrdup(pw->pw_name);
674 sw_gid = pw->pw_gid;
684 if ((pw = getpwnam(user)) != NULL) {
685 sw_uid = pw->pw_uid;
686 sw_gid = pw->pw_gid;
746 else if (pw)
747 if (0 != initgroups(pw->pw_name, pw
[all...]
/freebsd-11-stable/contrib/tcsh/
H A Dsh.file.c354 struct passwd *pw; local
368 pw = xgetpwnam(short2str(person));
370 if (pw == NULL)
372 home = str2short(pw->pw_dir);
477 struct passwd *pw; local
484 if ((pw = getpwent()) == NULL)
486 return (str2short(pw->pw_name));
/freebsd-11-stable/contrib/openbsm/bin/auditreduce/
H A Dauditreduce.c628 struct passwd *pw; local
703 if ((pw = getpwnam(optarg)) == NULL)
705 p_euid = pw->pw_uid;
774 if ((pw = getpwnam(optarg)) == NULL)
776 p_ruid = pw->pw_uid;
784 if ((pw = getpwnam(optarg)) == NULL)
786 p_auid = pw->pw_uid;
/freebsd-11-stable/contrib/pf/ftp-proxy/
H A Dftp-proxy.c273 struct passwd *pw; local
275 pw = getpwnam(NOPRIV_USER);
276 if (pw == NULL)
281 setgroups(1, &pw->pw_gid) != 0 ||
282 setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) != 0 ||
283 setresuid(pw->pw_uid, pw->pw_uid, pw
[all...]
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dbsd-cray.c764 cray_init_job(struct passwd *pw) argument
769 jid = setjob(pw->pw_uid, WJSIGNAL);
777 if (chown(cray_tmpdir, pw->pw_uid, pw->pw_gid) != 0) {
811 cray_init_job(struct passwd *pw) argument
813 initrm_silent(pw->pw_uid);
/freebsd-11-stable/bin/pax/
H A Dsel_subs.c106 struct passwd *pw; local
129 if ((pw = getpwnam(str)) == NULL) {
133 uid = (uid_t)pw->pw_uid;
/freebsd-11-stable/lib/libedit/
H A Deln.c309 const wchar_t *pw; local
310 ret = el_wget(el, op, &pw);
311 *p = ct_encode_string(pw, &el->el_lgcyconv);
/freebsd-11-stable/sbin/fsdb/
H A Dfsdbutil.c116 struct passwd *pw; local
187 if ((pw = getpwuid(DIP(dp, di_uid))))
188 printf("OWNER=%s ", pw->pw_name);
/freebsd-11-stable/contrib/wpa/src/ap/
H A Dap_config.c636 struct sae_password_entry *pw, *tmp; local
638 pw = conf->sae_passwords;
640 while (pw) {
641 tmp = pw;
642 pw = pw->next;
1362 struct sae_password_entry *pw; local
1367 for (pw = conf->sae_passwords; pw; pw
[all...]
/freebsd-11-stable/usr.bin/calendar/
H A Dcalendar.h51 extern struct passwd *pw;
/freebsd-11-stable/usr.bin/rlogin/
H A Drlogin.c128 struct passwd *pw; local
207 if (!(pw = getpwuid(uid = getuid())))
210 user = pw->pw_name;
212 localname = pw->pw_name;
/freebsd-11-stable/contrib/amd/amd/
H A Dinfo_ldap.c108 char *pw; member in struct:cr_ent
183 XFREE(c->pw);
280 creds->pw = "";
346 if (ldap_bind_s(ld, c->who, c->pw, c->method) != LDAP_SUCCESS) {
/freebsd-11-stable/usr.sbin/ppp/
H A Dauth.c129 struct passwd *pw; local
133 cryptpw = crypt(key, pw->pw_passwd);
134 result = (pw = getpwnam(name)) &&
135 (cryptpw == NULL || !strcmp(cryptpw, pw->pw_passwd));
/freebsd-11-stable/sbin/mdmfs/
H A Dmdmfs.c654 struct passwd *pw; local
677 pw = getpwnam(user);
678 if (pw == NULL)
680 *uid = pw->pw_uid;
/freebsd-11-stable/crypto/heimdal/lib/krb5/
H A Dkuserok.c253 struct passwd pw; local
255 if(getpwnam_r(luser, &pw, pwbuf, sizeof(pwbuf), &pwd) != 0)

Completed in 179 milliseconds

1234567891011>>