Home
last modified time | relevance | path

Searched refs:username (Results 1 – 25 of 101) sorted by relevance

12345

/illumos-gate/usr/src/cmd/roles/
H A Droles.c73 show_roles(char *username, int print_name) in show_roles() argument
79 if (username == NULL) { in show_roles()
85 username = pw->pw_name; in show_roles()
86 } else if (getpwnam(username) == NULL) { in show_roles()
87 (void) fprintf(stderr, "%s: %s : ", progname, username); in show_roles()
92 if ((user = getusernam(username)) != NULL) { in show_roles()
96 if (print_name && username != NULL) in show_roles()
97 (void) printf("%s : ", username); in show_roles()
101 if (print_name && username != NULL) in show_roles()
102 (void) printf("%s : ", username); in show_roles()
/illumos-gate/usr/src/cmd/vntsd/
H A Dauth.c118 auth_check_username(char *username, char *group_name) in auth_check_username() argument
125 if ((username == NULL) || (username[0] == '\0') || in auth_check_username()
137 auth_granted = chkauthattr(VNTSD_AUTH_ALLCONS, username); in auth_check_username()
141 auth_granted = chkauthattr(authname, username); in auth_check_username()
164 char *username = NULL; in auth_check_euid() local
176 username = passwdp->pw_name; in auth_check_euid()
179 return (auth_check_username(username, group_name)); in auth_check_euid()
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dmlsvc_client.c78 char *username, const char *service, ndr_auth_ctx_t *auth_ctx) in ndr_rpc_bind_common() argument
86 domain == NULL || username == NULL) in ndr_rpc_bind_common()
97 if (strcmp(username, MLSVC_ANON_USER) == 0) in ndr_rpc_bind_common()
98 username = ""; in ndr_rpc_bind_common()
109 status = smbrdr_ctx_new(&ctx, server, domain, username); in ndr_rpc_bind_common()
113 server, domain, username, in ndr_rpc_bind_common()
192 char *username, const char *service) in ndr_rpc_bind() argument
194 return (ndr_rpc_bind_common(handle, server, domain, username, service, in ndr_rpc_bind()
200 char *username, const char *service, ndr_auth_ctx_t *auth_ctx) in ndr_rpc_bind_secure() argument
202 return (ndr_rpc_bind_common(handle, server, domain, username, service, in ndr_rpc_bind_secure()
H A Dsmb_autohome.c80 char *username; in smb_autohome_add() local
93 username = token->tkn_account_name; in smb_autohome_add()
94 assert(username); in smb_autohome_add()
101 username = pw.pw_name; in smb_autohome_add()
105 if (!smb_isstrlwr(username)) { in smb_autohome_add()
106 (void) smb_strlwr(username); in smb_autohome_add()
116 smb_autohome_remove(const char *username) in smb_autohome_remove() argument
120 assert(username); in smb_autohome_remove()
124 (void) smb_shr_remove((char *)username); in smb_autohome_remove()
158 if ((ai = smb_autohome_lookup(username)) == NULL) { in smb_autohome_add_private()
[all …]
H A Dsamr_clnt.c91 if (username == NULL) in samr_open()
92 username = MLSVC_ANON_USER; in samr_open()
517 username == NULL || rid == NULL) { in samr_create_user()
528 ndr_heap_mkvcs(heap, username, (ndr_vcstr_t *)&arg.username); in samr_create_user()
754 user_info->info1.username = strdup( in samr_setup_user_info()
766 user_info->info6.username = strdup( in samr_setup_user_info()
773 user_info->info7.username = strdup( in samr_setup_user_info()
1001 if (arg.username == NULL) in samr_change_password()
1007 arg.username->length = len; in samr_change_password()
1008 arg.username->allosize = len; in samr_change_password()
[all …]
H A Dsamlib.h91 char *username; member
99 char *username; member
104 char *username; member
/illumos-gate/usr/src/cmd/keyserv/
H A Dnewkey.c114 if (username || target_host) in main()
116 username = optarg; in main()
119 if (username || target_host) in main()
141 if (username) { in main()
142 pw = getpwnam(username); in main()
145 program_name, username); in main()
153 program_name, username); in main()
160 program_name, username); in main()
168 program_name, username); in main()
331 char *username;
[all …]
/illumos-gate/usr/src/lib/pam_modules/roles/
H A Droles.c55 char *username; in pam_sm_acct_mgmt() local
66 (void) pam_get_item(pamh, PAM_USER, (void **)&username); in pam_sm_acct_mgmt()
91 allow_remote, (username) ? username : "not set", in pam_sm_acct_mgmt()
96 if (username == NULL) in pam_sm_acct_mgmt()
101 if ((pw_entry = getpwnam_r(username, &pwd, buf, sizeof (buf))) == 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()
171 (roleinlist(kva_value, username) == 0)) { in pam_sm_acct_mgmt()
/illumos-gate/usr/src/lib/passwdutil/
H A D__failed_count.c31 __incr_failed_count(char *username, char *repname, int max_failures) in __incr_failed_count() argument
53 if ((ret = ops->getpwnam(username, items, NULL, &buf)) != PWU_SUCCESS) { in __incr_failed_count()
66 max_failures, username); in __incr_failed_count()
72 if (((ret = ops->putpwnam(username, NULL, NULL, buf)) == in __incr_failed_count()
90 __rst_failed_count(char *username, char *repname) in __rst_failed_count() argument
112 if ((ret = ops->getpwnam(username, items, NULL, &buf)) != PWU_SUCCESS) in __rst_failed_count()
116 ret = ops->putpwnam(username, NULL, NULL, buf); in __rst_failed_count()
/illumos-gate/usr/src/lib/print/libhttp-core/common/
H A Dhttp-support.c68 char *username, /* O - Username [1024] */ in httpSeparate() argument
73 httpSeparate2(uri, method, 32, username, HTTP_MAX_URI, host, HTTP_MAX_URI, in httpSeparate()
87 char *username, /* O - Username */ in httpSeparate2() argument
104 if (uri == NULL || method == NULL || username == NULL || host == NULL || in httpSeparate2()
161 username[0] = '\0'; in httpSeparate2()
176 username[0] = '\0'; in httpSeparate2()
197 uri = http_copy_decode(username, uri, usernamelen, "@") + 1; in httpSeparate2()
200 username[0] = '\0'; in httpSeparate2()
/illumos-gate/usr/src/cmd/auths/
H A Dauths.c90 show_auths(char *username, int print_name) in show_auths() argument
97 if (username == NULL) { in show_auths()
104 username = pw->pw_name; in show_auths()
105 } else if (getpwnam(username) == NULL) { in show_auths()
107 (void) fprintf(stderr, "%s: %s : ", progname, username); in show_auths()
112 (void) _enum_auths(username, add_auth, NULL, &cbs); in show_auths()
118 (void) fprintf(stderr, "%s: %s: ", progname, username); in show_auths()
124 (void) printf("%s: ", username); in show_auths()
/illumos-gate/usr/src/cmd/profiles/
H A Dprofiles.c126 show_profs(char *username, int print_flag) in show_profs() argument
132 if (username == NULL) { in show_profs()
139 username = pw->pw_name; in show_profs()
140 } else if (getpwnam(username) == NULL) { in show_profs()
142 (void) fprintf(stderr, "%s: %s: ", progname, username); in show_profs()
148 exec = getexecuser(username, KV_COMMAND, NULL, in show_profs()
158 (void) _enum_profs(username, show_profs_callback, &print_flag, in show_profs()
166 (void) fprintf(stderr, "%s: %s: ", progname, username); in show_profs()
/illumos-gate/usr/src/lib/libsecdb/common/
H A Dchkauthattr.c150 _enum_common(const char *username, in _enum_common() argument
163 ua = getusernam(username); in _enum_common()
182 (kattrs = get_default_attrs(username)) != NULL) { in _enum_common()
207 _enum_profs(const char *username, in _enum_profs() argument
211 return (_enum_common(username, cb, ctxt, pres, B_FALSE)); in _enum_profs()
218 _enum_attrs(const char *username, in _enum_attrs() argument
222 return (_enum_common(username, cb, ctxt, pres, B_TRUE)); in _enum_attrs()
277 _enum_auths(const char *username, in _enum_auths() argument
383 chkauthattr(const char *authname, const char *username) in chkauthattr() argument
387 if (authname == NULL || username == NULL) in chkauthattr()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_auth.c256 char *username, in smb_auth_ntlmv2_hash() argument
265 if (username == NULL || ntdomain == NULL) in smb_auth_ntlmv2_hash()
268 (void) smb_strupr(username); in smb_auth_ntlmv2_hash()
270 data_len = strlen(username) + strlen(ntdomain); in smb_auth_ntlmv2_hash()
382 char *username, in smb_ntlmv2_password_ok() argument
426 if (smb_auth_ntlmv2_hash(ntlm_hash, username, dest[i], in smb_ntlmv2_password_ok()
457 char *username) in smb_lmv2_password_ok() argument
491 if (smb_auth_ntlmv2_hash(ntlm_hash, username, dest[i], in smb_lmv2_password_ok()
521 char *username, in smb_auth_validate() argument
548 domain, username, session_key); in smb_auth_validate()
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/repquota/
H A Drepquota.c61 struct username { struct
62 struct username *u_next; argument
67 static struct username *uhead[UHASH]; argument
69 static struct username *lookup(uid_t);
70 static struct username *adduid(uid_t);
288 struct username *up; in prquota()
383 static struct username *
387 struct username *up; in lookup()
393 return ((struct username *)0); in lookup()
403 static struct username *
[all …]
/illumos-gate/usr/src/lib/pam_modules/list/
H A Dlist.c71 char *username = NULL; in pam_sm_acct_mgmt() local
182 (void) pam_get_item(pamh, PAM_USER, (void**)&username); in pam_sm_acct_mgmt()
184 if ((check_user || check_group || check_exact) && ((username == NULL) || in pam_sm_acct_mgmt()
185 (*username == '\0'))) { in pam_sm_acct_mgmt()
207 (rhost != NULL) ? rhost : "", username); in pam_sm_acct_mgmt()
316 if (innetgr(bufp, rhost, username, in pam_sm_acct_mgmt()
323 userok = innetgr(bufp, NULL, username, in pam_sm_acct_mgmt()
351 if (strcmp(*member, username) == 0) { in pam_sm_acct_mgmt()
363 if (strcmp(bufp, username) == 0) { in pam_sm_acct_mgmt()
/illumos-gate/usr/src/cmd/ldap/common/
H A Dldaptool-sasl.c32 char *username; member
41 ldaptool_set_sasl_defaults ( LDAP *ld, char *mech, char *authid, char *username, in ldaptool_set_sasl_defaults() argument
59 if (username) in ldaptool_set_sasl_defaults()
60 defaults->username = username; in ldaptool_set_sasl_defaults()
62 ldap_get_option(ld, LDAP_OPT_X_SASL_AUTHZID, &defaults->username); in ldaptool_set_sasl_defaults()
108 defvalue = defaults->username; in get_default()
/illumos-gate/usr/src/lib/pam_modules/krb5/
H A Dkrb5_setcred.c371 char *username = NULL; in krb5_renew_tgt() local
480 username = strdup(client_name); in krb5_renew_tgt()
481 if (username == NULL) { in krb5_renew_tgt()
487 if ((tmpname = strchr(username, '@'))) in krb5_renew_tgt()
490 if (get_pw_uid(username, &uuid) == 0 || in krb5_renew_tgt()
491 get_pw_gid(username, &ugid) == 0) { in krb5_renew_tgt()
495 username); in krb5_renew_tgt()
541 username); in krb5_renew_tgt()
550 username, filepath); in krb5_renew_tgt()
587 if (username) in krb5_renew_tgt()
[all …]
/illumos-gate/usr/src/cmd/lp/model/netpr/
H A Dbsd_misc.c54 if ((injob->request_id == NULL) || (injob->username == NULL) || in create_bsd_job()
94 if ((id = strchr(injob->username, '@')) != NULL) { in create_bsd_job()
96 job->np_username = strdup(injob->username); in create_bsd_job()
99 } else if ((id = strrchr(injob->username, '!')) != NULL) { in create_bsd_job()
102 job->np_host = strdup(injob->username); in create_bsd_job()
106 injob->username); in create_bsd_job()
107 job->np_username = strdup(injob->username); in create_bsd_job()
/illumos-gate/usr/src/cmd/ndmpadm/
H A Dndmpadm_main.c118 const char *username; member
562 char *auth_type, *username, *password; in ndmp_enable_auth() local
577 username = strdup(optarg); in ndmp_enable_auth()
591 if ((auth_type) && (username)) { in ndmp_enable_auth()
596 free(username); in ndmp_enable_auth()
603 free(username); in ndmp_enable_auth()
612 free(username); in ndmp_enable_auth()
620 if ((ndmp_set_prop(ndmp_auth_table[i].username, in ndmp_enable_auth()
621 username)) == -1) { in ndmp_enable_auth()
643 free(username); in ndmp_enable_auth()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/
H A Dsmb_pass.c139 duser = u8_strcmp(pa->username, pb->username, 0, in smb_pkey_cmp()
196 strfree(tmp->username); in smb_pkey_delete()
222 tmp->username = pk->pk_usr; in smb_pkey_del()
295 cpid->username = strdup(pk->pk_usr); in smb_pkey_add()
317 strfree(cpid->username); in smb_pkey_add()
349 cpid->username = pk->pk_usr; in smb_pkey_check()
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_logon.c93 char *username; in smbd_user_auth_logon() local
147 username = tmp_user.lg_e_username; in smbd_user_auth_logon()
156 username = token->tkn_account_name; in smbd_user_auth_logon()
196 event->adt_smbd_session.username = username; in smbd_user_auth_logon()
215 entry->sa_username = strdup(username); in smbd_user_auth_logon()
293 event->adt_smbd_logoff.username = entry->sa_username; in smbd_user_auth_logoff()
/illumos-gate/usr/src/lib/sasl_plugins/login/
H A Dlogin.c79 char *username; member
153 text->username = in login_server_mech_step()
155 if (!text->username) { in login_server_mech_step()
160 strncpy(text->username, clientin, clientinlen); in login_server_mech_step()
162 text->username[clientinlen] = '\0'; in login_server_mech_step()
203 result = params->canon_user(params->utils->conn, text->username, in login_server_mech_step()
260 if (text->username) utils->free(text->username); in login_server_mech_dispose()
/illumos-gate/usr/src/cmd/sgs/error/common/
H A Derrorfilter.c60 char *username; in getignored() local
65 if ((username = (char *)getlogin()) == NULL) { in getignored()
66 username = "Unknown"; in getignored()
72 if ((passwdentry = getpwnam(username)) == NULL) in getignored()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dchap_ms.c419 ChallengeHash(peerchallenge, authenticatorchallenge, username, challenge) in ChallengeHash() argument
421 char *username;
436 if ((cp = strchr(username,'\\')) != NULL)
437 username = cp;
439 SHA1Update(&sha1Context, (uint8_t *)username, strlen(username));
445 ChapMSv2_NT(username, rchallenge, secret, secret_len, response) in ChapMSv2_NT() argument
446 char *username; in ChapMSv2_NT()
471 ChallengeHash(response->PeerChallenge, rchallenge, username, challenge);

12345