/titanic_50/usr/src/cmd/ssh/sshd/ |
H A D | auth.c | 97 if (!pw || !pw->pw_name) in allowed_user() 101 spw = getspnam(pw->pw_name); in allowed_user() 113 log("Account %.100s has expired", pw->pw_name); in allowed_user() 119 pw->pw_name); in allowed_user() 126 pw->pw_name); in allowed_user() 132 if (!pw || !pw->pw_name) in allowed_user() 145 pw->pw_name, shell); in allowed_user() 151 pw->pw_name, shell); in allowed_user() 163 if (match_user(pw->pw_name, hostname, ipaddr, in allowed_user() 166 pw->pw_name); in allowed_user() [all …]
|
H A D | auth-rhosts.c | 208 client_user, pw->pw_name)) { in auth_rhosts2_raw() 214 client_user, pw->pw_name)) { in auth_rhosts2_raw() 226 "no home directory %.200s", pw->pw_name, pw->pw_dir); in auth_rhosts2_raw() 228 "no home directory %.200s", pw->pw_name, pw->pw_dir); in auth_rhosts2_raw() 235 "bad ownership or modes for home directory.", pw->pw_name); in auth_rhosts2_raw() 237 "bad ownership or modes for home directory.", pw->pw_name); in auth_rhosts2_raw() 262 pw->pw_name, buf); in auth_rhosts2_raw() 273 if (check_rhosts_file(buf, hostname, ipaddr, client_user, pw->pw_name)) { in auth_rhosts2_raw() 279 hostname, ipaddr, client_user, pw->pw_name); in auth_rhosts2_raw()
|
H A D | auth-krb4.c | 120 pw->pw_name); in auth_krb4_password() 124 r = krb_get_pw_in_tkt((char *) pw->pw_name, "", realm, in auth_krb4_password() 128 "failed: %s", pw->pw_name, krb_err_txt[r]); in auth_krb4_password() 162 pw->pw_name, krb_err_txt[r]); in auth_krb4_password() 175 "not registered, or srvtab is wrong?", pw->pw_name, in auth_krb4_password() 183 "for %s: %s", pw->pw_name, krb_err_txt[r]); in auth_krb4_password() 303 creds.realm, pw->pw_name); in auth_krb4_tgt() 361 creds.pname, creds.realm, pw->pw_name); in auth_afs_token()
|
H A D | auth-passwd.c | 143 authsuccess = (authenticate(pw->pw_name,password,&reenter,&authmsg) == 0); in auth_password() 163 if (auth_userokay(pw->pw_name, authctxt->style, "auth-ssh", in auth_password() 175 spw = getspnam(pw->pw_name); in auth_password() 181 if (issecure() && (spw = getpwanam(pw->pw_name)) != NULL) in auth_password()
|
H A D | auth-skey.c | 77 skey_haskey(authctxt->pw->pw_name) == 0 && in skey_respond() 78 skey_passcheck(authctxt->pw->pw_name, responses[0]) != -1) in skey_respond()
|
/titanic_50/usr/src/cmd/cron/ |
H A D | atq.c | 95 pr.pw_name = pp->pw_name; in main() 99 if (!allowed(pp->pw_name, ATALLOW, ATDENY)) in main() 133 if (cron_admin(pr.pw_name) || in main() 134 strcmp(pr.pw_name, argv[i]) == 0) { in main() 149 "for %s:\n", pr.pw_name); in main() 156 } else if (!cron_admin(pr.pw_name)) { in main() 204 if (argnum != argc) c = pr.pw_name; in main() 346 return (pwdinfo->pw_name); in getname()
|
/titanic_50/usr/src/cmd/ypcmd/yppasswd/ |
H A D | changepasswd.c | 149 (!validstr(yppwd.newpw.pw_name, UTUSERLEN)) || in changepasswd() 171 strcpy(name, newpw.pw_name); in changepasswd() 409 newpw.pw_name); in changepasswd() 415 newpw.pw_name); in changepasswd() 437 newpw.pw_name); in changepasswd() 446 (strcmp(p, opwd.pw_name) == 0)) && in changepasswd() 467 newpw.pw_name); in changepasswd() 474 newpw.pw_name); in changepasswd() 481 newpw.pw_name); in changepasswd() 502 newpw.pw_name); in changepasswd() [all …]
|
/titanic_50/usr/src/cmd/ssh/libopenbsd-compat/common/ |
H A D | port-aix.c | 46 cp = xmalloc(16 + 2 * strlen(pw->pw_name)); in aix_usrinfo() 47 i = sprintf(cp, "LOGNAME=%s%cNAME=%s%c", pw->pw_name, 0, in aix_usrinfo() 48 pw->pw_name, 0); in aix_usrinfo()
|
H A D | port-irix.c | 30 jid = jlimit_startjob(pw->pw_name, pw->pw_uid, "interactive"); in irix_setusercontext() 43 if ((projid = getdfltprojuser(pw->pw_name)) == -1) { in irix_setusercontext() 49 (int)projid, pw->pw_name, strerror(errno)); in irix_setusercontext()
|
/titanic_50/usr/src/lib/libnisdb/yptol/ |
H A D | shim_changepasswd.c | 118 char *pw_name; member 186 (!validstr(yppwd.newpw.pw_name, UTUSERLEN)) || in shim_changepasswd() 269 for (p = yppwd->newpw.pw_name; (*p != '\0'); p++) in proc_domain() 277 old_pwd = get_old_info(yppwd->newpw.pw_name, domain); in proc_domain() 281 "domain %s", yppwd->newpw.pw_name, domain); in proc_domain() 315 yppwd->newpw.pw_name); in proc_request() 550 key.dptr = pwd->pw_name; in update_single_map() 657 "No change for %s", yppwd->newpw.pw_name); in modify_ent() 674 shadow = get_old_shadow(yppwd->newpw.pw_name, domain); in modify_ent() 755 (strcmp(p, old_ent->pw_name) == 0)) && in get_change_list() [all …]
|
/titanic_50/usr/src/cmd/newtask/ |
H A D | newtask.c | 178 pw->pw_name, finalize_flag)) != 0) { in main() 179 setproject_err(pw->pw_name, projname, error, NULL); in main() 214 size_t len_logname = strlen(pw->pw_name) + strlen("LOGNAME=") + in main() 217 size_t len_mail = strlen(pw->pw_name) + in main() 231 pw->pw_name); in main() 234 pw->pw_name); in main() 585 passwd_entry->pw_name, 0, Pstatus(p)->pr_pid, p, project)) != 0) { in set_ids() 587 setproject_err(passwd_entry->pw_name, project->pj_name, in set_ids() 672 (pw->pw_name == NULL)) in match_user() 681 if (((pw = getpwuid(uid)) == NULL) || pw->pw_name == NULL) { in match_user() [all …]
|
/titanic_50/usr/src/lib/libc/port/gen/ |
H A D | putpwent.c | 44 (void) fprintf(f, "%s:%s", p->pw_name, in putpwent() 48 black_magic = (*p->pw_name == '+' || *p->pw_name == '-'); in putpwent()
|
/titanic_50/usr/src/cmd/keyserv/ |
H A D | chkey.c | 279 program_name, pw->pw_name); in getpublics() 369 snprintf(prompt, BUFSIZ, "%s %s:", baseprompt, pw->pw_name); in cmp_passwd() 416 pw->pw_name); in cmp_passwd() 426 pw->pw_name); in cmp_passwd() 433 pw->pw_name); in cmp_passwd() 444 program_name, pw->pw_name); in cmp_passwd() 460 flavor, pw->pw_name); in getrpcpws() 464 pw->pw_name); in getrpcpws() 470 program_name, pw->pw_name); in getrpcpws() 557 program_name, pw->pw_name); in getsecrets() [all …]
|
/titanic_50/usr/src/lib/passwdutil/ |
H A D | utils.c | 63 if (pw->pw_name) free(pw->pw_name); in free_pwd() 89 if (s->pw_name) { in dup_pw() 90 if (((*d)->pw_name = strdup(s->pw_name)) == NULL) in dup_pw()
|
/titanic_50/usr/src/lib/libpkg/common/ |
H A D | ncgrpw.c | 501 if (pwd->pw_name == NULL) { in dup_pw_ent() 506 } else if ((pwd->pw_name = strdup(pwd->pw_name)) == NULL) { in dup_pw_ent() 515 pwd->pw_name, "passwd"); in dup_pw_ent() 526 pwd->pw_name, "passwd"); in dup_pw_ent() 537 pwd->pw_name, "passwd"); in dup_pw_ent() 549 pwd->pw_name, "passwd"); in dup_pw_ent() 560 pwd->pw_name, "passwd"); in dup_pw_ent() 571 pwd->pw_name, "passwd"); in dup_pw_ent() 651 if (strcmp(pw->pw_name, nam) == 0) { in clpwnam()
|
/titanic_50/usr/src/lib/pam_modules/roles/ |
H A D | roles.c | 111 if (((user_entry = getusernam(pw_entry->pw_name)) == NULL) || in pam_sm_acct_mgmt() 123 if (strcmp(username, pw_entry->pw_name) != 0) { in pam_sm_acct_mgmt() 127 username, pw_entry->pw_uid, pw_entry->pw_name); in pam_sm_acct_mgmt() 151 user_entry = getusernam(pw_entry->pw_name); in pam_sm_acct_mgmt()
|
/titanic_50/usr/src/lib/libtecla/common/ |
H A D | homedir.c | 371 waserr = callback_fn(data, pwd->pw_name, pwd->pw_dir, 379 strncmp(prefix, pwd->pw_name, prefix_len)==0) { 380 waserr = callback_fn(data, pwd->pw_name, pwd->pw_dir, 405 if(strncmp(prefix, pwd->pw_name, prefix_len) == 0) { 406 waserr = callback_fn(data, pwd->pw_name, pwd->pw_dir,
|
/titanic_50/usr/src/lib/nsswitch/compat/common/ |
H A D | getpwent.c | 132 return (p->pw_name); 141 return (strcmp(p->pw_name, argp->key.name) == 0); 207 pw->pw_name, fields[1]); 212 pw->pw_name, pw->pw_passwd, pw->pw_age); 215 pw->pw_name, pw->pw_passwd);
|
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/ilbd/ |
H A D | ilbd_support.c | 118 if (chkauthattr(NET_ILB_CONFIG_AUTH, pwd->pw_name) == 0) { in ilbd_check_client_config_auth() 120 " configuration operation", pwd->pw_name); in ilbd_check_client_config_auth() 130 if (chkauthattr(NET_ILB_ENABLE_AUTH, pwd->pw_name) == 0) { in ilbd_check_client_enable_auth() 132 " enable/disable operation", pwd->pw_name); in ilbd_check_client_enable_auth()
|
/titanic_50/usr/src/cmd/ssh/libssh/common/ |
H A D | uidswap.c | 95 if (initgroups(pw->pw_name, pw->pw_gid) < 0) in temporarily_use_uid() 96 fatal("initgroups: %s: %.100s", pw->pw_name, in temporarily_use_uid() 194 if (initgroups(pw->pw_name, pw->pw_gid) < 0) in permanently_set_uid() 195 fatal("initgroups: %s: %.100s", pw->pw_name, in permanently_set_uid()
|
/titanic_50/usr/src/cmd/su/ |
H A D | su.c | 288 pam_set_item(pamh, PAM_AUSER, pwd.pw_name) != PAM_SUCCESS) in main() 349 pwd.pw_name, username, ttyn); in main() 359 pwd.pw_name, username, ttyn); in main() 379 pwd.pw_name, username, ttyn); in main() 409 pwd.pw_name, username, ttyn); in main() 421 pwd.pw_name, username, ttyn); in main() 429 name = strdup(pwd.pw_name); in main() 799 if (((user_entry = getusernam(pwd->pw_name)) != NULL) && in audit_success() 1028 if (((user_entry = getusernam(pwd->pw_name)) != NULL) && in audit_failure() 1330 log(Sulog, pwd.pw_name, 0); /* log entry */ in validate() [all …]
|
/titanic_50/usr/src/cmd/acct/lib/ |
H A D | uidtonam.c | 68 CPYN(up->uname, pp->pw_name); 71 return(pp->pw_name);
|
/titanic_50/usr/src/lib/libadm/common/ |
H A D | ckuid.c | 71 n += strlen(pwdptr->pw_name) + 2; in setmsg() 78 (void) strcat(msg, pwdptr->pw_name); in setmsg() 94 (void) printf("%s\n", pwdptr->pw_name); in ckuid_dsp()
|
/titanic_50/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_pwdutil.c | 281 if (strcmp(name, smbpw->pw_name) == 0) { in smb_pwd_getpwnam() 526 if (strcmp(smbpw.pw_name, name) == 0) { in smb_pwd_update() 546 (void) strlcpy(smbpw.pw_name, uxpw.pw_name, in smb_pwd_update() 547 sizeof (smbpw.pw_name)); in smb_pwd_update() 634 (void) strlcpy(pw->pw_name, argv[SMB_PWD_NAME], sizeof (pw->pw_name)); in smb_pwd_fgetent() 750 rc = fprintf(fp, "%s:%u:%s:%s\n", pw->pw_name, pw->pw_uid, in smb_pwd_fputent() 1031 uc_node.cn_user.su_name = smbpw.pw_name; in smb_lucache_do_update() 1059 user->su_name = strdup(smbpw.pw_name); in smb_lucache_do_update()
|
/titanic_50/usr/src/cmd/ssh/ssh/ |
H A D | ssh.c | 226 char *p, *cp, buf[256], *pw_name, *pw_dir; local 282 if ((pw_name = getenv("LOGNAME")) == NULL) { 288 pw_name); 291 pw_name = xstrdup(pw_name); 293 pw_name = xstrdup(pw->pw_name); 630 options.user = xstrdup(pw_name); 749 ssh_login(&sensitive_data, host, (struct sockaddr *)&hostaddr, pw_name); 750 xfree(pw_name);
|