Home
last modified time | relevance | path

Searched refs:user (Results 1 – 25 of 761) sorted by relevance

12345678910>>...31

/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_user.c237 smb_user_t *user; in smb_user_new() local
255 user->u_ssnid = SMB_USER_SSNID(user) + gen; in smb_user_new()
283 return (user); in smb_user_new()
397 smb_session_disconnect_owned_trees(user->u_session, user); in smb_user_logoff()
443 user->u_refcnt++; in smb_user_hold_internal()
577 ASSERT(user); in smb_user_is_admin()
631 user->u_domain, user->u_name); in smb_user_namecmp()
636 user->u_name, user->u_domain); in smb_user_namecmp()
656 ASSERT(user); in smb_user_enum()
742 return ((user->u_privcred)? user->u_privcred : user->u_cred); in smb_user_getprivcred()
[all …]
H A Dsmb_authenticate.c65 smb_user_t *user = NULL; in smb_authenticate_old() local
69 if (user == NULL) in smb_authenticate_old()
73 sr->uid_user = user; in smb_authenticate_old()
106 smb_user_logoff(user); in smb_authenticate_old()
262 if (user == NULL) in smb_authenticate_ext()
266 sr->uid_user = user; in smb_authenticate_ext()
301 if (user == NULL) in smb_authenticate_ext()
305 sr->uid_user = user; in smb_authenticate_ext()
585 if (user == NULL) in smb_authsock_cancel()
625 so = user->u_authsock; in smb_authsock_sendrecv()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/delegate/
H A Ddelegate_common.kshlib91 typeset user
135 typeset user
161 typeset user=$1
201 typeset user=$1
302 typeset user=$1
378 typeset user=$1
407 typeset user=$1
479 typeset user=$1
485 user_run $user zfs set "$user:ts=$stamp" $dtst
1682 user_run $user zfs allow $user allow $dtst
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/cifs/
H A Dcifs_attr_003_pos.ksh201 typeset user=$2
221 typeset user=$2
235 typeset user=$2
390 A+user:$user:${ace_dir}:allow $object
393 A+user:$user:${ace_file}:allow $object
447 A+user:$user:${ace_dir}:allow $object
450 A+user:$user:${ace_file}:allow $object
490 A+user:$user:${ace_dir}:allow $object
493 A+user:$user:${ace_file}:allow $object
533 A+user:$user:${ace_dir}:allow $object
[all …]
H A Dcifs_attr_001_pos.ksh70 typeset user=$3
77 if [[ -n $user ]]; then
99 typeset user=$3
106 if [[ -n $user ]]; then
125 typeset user=$1
142 log_must chmod A+user:$user:write_attributes:deny \
146 log_must chmod A+user:$user:write_attributes:allow $object
159 typeset user=$1
183 typeset user=$4
195 if [[ -z $user || $user == "root" || $user == \
[all …]
H A Dcifs_attr_002_pos.ksh75 if [[ $user == 'root' ]]; then
83 log_mustnot su $user -c "$cmd"
87 log_must su $user -c "$cmd"
93 log_must su $user -c "$cmd"
95 log_must su $user -c "$cmd"
138 typeset user=$1
148 [[ $user == 'root' ]] && return 0
162 typeset user=$1
164 if [[ -z $user ]]; then
194 grant_priv $user $priv
[all …]
/illumos-gate/usr/src/lib/libsecdb/common/
H A Dgetuserattr.c55 userstr_t user; in getuserattr() local
68 userstr_t user; in fgetuserattr() local
82 userstr_t user; in getusernam() local
121 if (user) { in free_userattr()
122 free(user->name); in free_userattr()
124 free(user->res1); in free_userattr()
127 free(user); in free_userattr()
137 if (user == NULL) in userstr2attr()
164 printf("name=%s\n", user->name ? user->name : empty); in print_userattr()
166 printf("res1=%s\n", user->res1 ? user->res1 : empty); in print_userattr()
[all …]
/illumos-gate/usr/src/lib/libc/sparc/sys/
H A Dptrace.c75 user_t user; /* manufactured u-block */ member
268 if (xaddr >= (unsigned)cp->user.u_reg[REG_SP] && in ptrace()
287 data = (cp->user.u_reg[REG_PS] & in ptrace()
291 cp->user.u_reg[rx] = data; in ptrace()
337 (addr & ~03) != cp->user.u_reg[REG_PC]) { in ptrace()
698 cp->user.u_ar0 = (greg_t *)REGADDR; in MakeUser()
699 cp->user.u_code = ps->pr_lwp.pr_info.si_code; in MakeUser()
700 cp->user.u_addr = ps->pr_lwp.pr_info.si_addr; in MakeUser()
716 (void) memset(cp->user.u_psargs, 0, PSARGSZ); in GetPsargs()
719 (void) pread(fd, cp->user.u_psargs, PSARGSZ, in GetPsargs()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dmbdb.c165 sm_mbdb_lookup(name, user) in sm_mbdb_lookup() argument
167 SM_MBDB_T *user;
188 sm_mbdb_frompw(user, pw) in sm_mbdb_frompw() argument
189 SM_MBDB_T *user; in sm_mbdb_frompw()
192 SM_REQUIRE(user != NULL);
195 user->mbdb_uid = pw->pw_uid;
238 char *user;
312 mbdb_pw_lookup(name, user) in mbdb_pw_lookup() argument
314 SM_MBDB_T *user;
355 sm_mbdb_frompw(user, pw);
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/
H A Dzfs_acl_chmod_owner_001_pos.ksh117 typeset user=$1
153 typeset user=$1
190 typeset user=$2
196 if [[ $user == root ]]; then
198 elif [[ $user == $new ]] ; then
209 typeset user=$1
221 for new_owner in $user "nobody"; do
224 log=$(logname $acl_target $user \
266 typeset user=$1
289 typeset user=$2
[all …]
/illumos-gate/usr/src/lib/libc/i386/sys/
H A Dptrace.c75 user_t user; /* manufactured u-block */ member
285 cp->user.u_reg[rx] = data; in ptrace()
301 ps->pr_lwp.pr_reg[GS] = cp->user.u_reg[GS]; in ptrace()
302 ps->pr_lwp.pr_reg[FS] = cp->user.u_reg[FS]; in ptrace()
303 ps->pr_lwp.pr_reg[ES] = cp->user.u_reg[ES]; in ptrace()
304 ps->pr_lwp.pr_reg[DS] = cp->user.u_reg[DS]; in ptrace()
316 ps->pr_lwp.pr_reg[CS] = cp->user.u_reg[CS]; in ptrace()
319 ps->pr_lwp.pr_reg[SS] = cp->user.u_reg[SS]; in ptrace()
329 addr != cp->user.u_reg[EIP]) { in ptrace()
688 cp->user.u_ar0 = (greg_t *)REGADDR; in MakeUser()
[all …]
/illumos-gate/usr/src/lib/scsi/plugins/smp/sas2/common/
H A Dsas2_functions.c39 if (user != 0) { in sas2_rq_len()
217 if (user != 0) { in sas2_report_self_config_status_rq_len()
229 if (user != 0) { in sas2_report_zone_perm_table_rq_len()
241 if (user != 0) { in sas2_report_zone_mgr_password_rq_len()
253 if (user != 0) { in sas2_report_broadcast_rq_len()
265 if (user != 0) { in sas2_discover_rq_len()
301 if (user != 0) { in sas2_report_phy_error_log_rq_len()
484 if (user == 0 || user > 1008) { in sas2_zoned_broadcast_rq_len()
547 if (user == 0 || user > 252) { in sas2_config_zone_phy_info_rq_len()
569 if (user == 0 || user > maxdescr) { in sas2_config_zone_perm_table_rq_len()
[all …]
/illumos-gate/usr/src/cmd/lp/lib/access/
H A Dallowed.c75 char * user, in is_user_allowed() argument
80 is_user_allowed (user, allow, deny) in is_user_allowed()
81 char *user, in is_user_allowed()
86 if (bangequ(user, LOCAL_LPUSER) || bangequ(user, LOCAL_ROOTUSER))
89 return (allowed(user, allow, deny));
99 char * user, in is_user_allowed_form() argument
103 is_user_allowed_form (user, form) in is_user_allowed_form()
104 char *user, in is_user_allowed_form()
124 char * user, in is_user_allowed_printer() argument
128 is_user_allowed_printer (user, printer) in is_user_allowed_printer()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/uwin/
H A Drcmd.c383 char *user; in _validuser() local
402 user = p; in _validuser()
406 user = p; in _validuser()
415 if ('+' == user[0] && '\0' == user[1] ) in _validuser()
423 if ('-' == user[0] && '\0' == user[1] ) in _validuser()
437 if ('\0' != *user && user[0] == '-' && user[1] != '@' in _validuser()
441 if ('\0' != *user && user[0] == '-' && user[1] == '@' in _validuser()
442 && user[2] != '\0' && _checknetgroupuser(ruser, &user[2])) in _validuser()
450 if ('\0' != *user && user[0] == '+' in _validuser()
451 && user[1] == '@' && user[2] != '\0') in _validuser()
[all …]
/illumos-gate/usr/src/cmd/getent/
H A Ddogetuserattr.c36 putuserattr(const userattr_t *user, FILE *fp) in putuserattr() argument
42 if (user == NULL) in putuserattr()
46 user->name != NULL ? user->name : "", in putuserattr()
47 user->qualifier != NULL ? user->res1 : "", in putuserattr()
48 user->res1 != NULL ? user->res1 : "", in putuserattr()
49 user->res2 != NULL ? user->res2 : "") == EOF) in putuserattr()
51 attrs = user->attr; in putuserattr()
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dlsalib.c182 char user[SMB_USERNAME_MAXLEN]; in lsa_query_primary_domain_info() local
211 char user[SMB_USERNAME_MAXLEN]; in lsa_query_account_domain_info() local
241 char user[SMB_USERNAME_MAXLEN]; in lsa_query_dns_domain_info() local
271 char user[SMB_USERNAME_MAXLEN]; in lsa_enum_trusted_domains() local
311 char user[SMB_USERNAME_MAXLEN]; in lsa_enum_trusted_domains_ex() local
393 char user[SMB_USERNAME_MAXLEN]; in lsa_lookup_name_domain() local
402 user, &domain_handle); in lsa_lookup_name_domain()
431 char user[SMB_USERNAME_MAXLEN]; in lsa_lookup_privs() local
440 user, &domain_handle); in lsa_lookup_privs()
463 char user[SMB_USERNAME_MAXLEN]; in lsa_list_privs() local
[all …]
/illumos-gate/usr/src/lib/pam_modules/krb5/
H A Dutils.c52 get_pw_uid(char *user, uid_t *uid) in get_pw_uid() argument
57 if (getpwnam_r(user, &sp, buffer, sizeof (buffer)) == NULL) { in get_pw_uid()
72 get_pw_gid(char *user, gid_t *gid) in get_pw_gid() argument
77 if (getpwnam_r(user, &sp, buffer, sizeof (buffer)) == NULL) { in get_pw_gid()
106 if (strcmp(user, ROOT_UNAME) == 0) { in get_kmd_kuser()
132 if (strlcpy(kuser, user, length) >= length) { in get_kmd_kuser()
143 key_in_keytab(const char *user, int debug) in key_in_keytab() argument
158 whoami, user ? user : "<null>"); in key_in_keytab()
160 if (!user) in key_in_keytab()
173 if ((code = get_kmd_kuser(kcontext, (const char *)user, kuser, in key_in_keytab()
[all …]
/illumos-gate/usr/src/lib/pam_modules/smbfs/
H A Dsmbfs_login.c60 char *user; in pam_sm_setcred() local
85 (void) pam_get_item(pamh, PAM_USER, (void **)&user); in pam_sm_setcred()
87 if (user == NULL || *user == '\0') { in pam_sm_setcred()
92 if (getpwnam_r(user, &pwbuf, buf, sizeof (buf)) == NULL) { in pam_sm_setcred()
94 "pam_smbfs_login: username %s can't be found", user); in pam_sm_setcred()
115 service, dom, user); in pam_sm_setcred()
118 res = smbfs_keychain_add(uid, dom, user, pw); in pam_sm_setcred()
121 res = smbfs_keychain_del(uid, dom, user); in pam_sm_setcred()
130 "smbfs password successfully stored for %s", user); in pam_sm_setcred()
143 __pam_log(LOG_AUTH | LOG_ERR, "smbfs user %s is invalid", user); in pam_sm_setcred()
/illumos-gate/usr/src/lib/pam_modules/ldap/
H A Dldap_authenticate.c54 char *user = NULL; in pam_sm_authenticate() local
66 (err = pam_get_item(pamh, PAM_USER, (void **)&user)) != PAM_SUCCESS) in pam_sm_authenticate()
89 service, (user && *user != '\0')?user:"no-user", flags, in pam_sm_authenticate()
92 if (!user || *user == '\0') in pam_sm_authenticate()
101 "AUTHTOK not set", service, user); in pam_sm_authenticate()
110 result = authenticate(&credp, user, password, NULL); in pam_sm_authenticate()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Devent_port.c61 (uintptr_t)user); in port_associate()
110 port_send(int port, int events, void *user) in port_send() argument
113 r.r_vals = _portfs(PORT_SEND, port, events, (uintptr_t)user, 0, 0); in port_send()
124 void *user) in _port_dispatch() argument
129 (uintptr_t)user); in _port_dispatch()
132 source, events, object, (uintptr_t)user); in _port_dispatch()
137 port_sendn(int ports[], int errors[], uint_t nent, int events, void *user) in port_sendn() argument
146 (uintptr_t)user); in port_sendn()
160 lnent, events, (uintptr_t)user); in port_sendn()
175 port_alert(int port, int flags, int events, void *user) in port_alert() argument
[all …]
/illumos-gate/usr/src/lib/pam_modules/tsol_acct/
H A Dtsol_acct.c60 char *user; in pam_sm_acct_mgmt() local
81 (void) pam_get_item(pamh, PAM_USER, (void **)&user); in pam_sm_acct_mgmt()
90 (user == NULL) ? "NULL" : (*user == '\0') ? "ZERO" : in pam_sm_acct_mgmt()
91 user, in pam_sm_acct_mgmt()
95 if (user == NULL || *user == '\0') { in pam_sm_acct_mgmt()
101 if ((range = getuserrange(user)) == NULL) { in pam_sm_acct_mgmt()
103 "pam_tsol_account: getuserrange(%s) failure", user); in pam_sm_acct_mgmt()
/illumos-gate/usr/src/lib/libproject/common/
H A Dgetprojent.c160 (strcmp(member + 1, user) == 0 || in ismember()
189 if (strcmp(*u, user) == 0) in ismember()
212 if (getpwnam_r(user, &p, buffer, buflen) == NULL) in _getdefaultproj()
218 if ((uattr = getusernam(user)) != NULL) { in _getdefaultproj()
239 ismember(result, user, p.pw_gid, DEFAULT_PROJECT)) in _getdefaultproj()
254 ismember(result, user, p.pw_gid, DEFAULT_PROJECT)) in _getdefaultproj()
277 if (getpwnam_r(user, &pwd, buffer, buflen) == NULL) in _inproj()
287 return (ismember(&proj, user, gid, DEFAULT_PROJECT)); in _inproj()
292 if ((uattr = getusernam(user)) != NULL) { in _inproj()
296 return (ismember(&proj, user, gid, in _inproj()
[all …]
/illumos-gate/usr/src/cmd/lp/lib/users/
H A Dloadpri.c78 *user, in ld_priority_file() local
132 if (!(user = next_user(fd, line, &p))) in ld_priority_file()
138 if (!(user = next_user(fd, line, &p))) goto Error; in ld_priority_file()
151 add_user (&pri_tbl, user, pri); in ld_priority_file()
153 while ((user = next_user(fd, line, &p))); in ld_priority_file()
174 int add_user ( struct user_priority * ppri_tbl, char * user, int limit ) in add_user() argument
178 addlist (&(ppri_tbl->users[limit - PRI_MIN]), user); in add_user()
243 int del_user ( struct user_priority * ppri_tbl, char * user ) in del_user() argument
248 if (searchlist(user, ppri_tbl->users[limit - PRI_MIN])) in del_user()
250 dellist (&(ppri_tbl->users[limit - PRI_MIN]), user); in del_user()
/illumos-gate/usr/src/cmd/userattr/
H A Duserattr.c75 char *user = NULL; in main() local
91 user = argv[opt++]; in main()
100 if (user == NULL) { in main()
108 user = pwd->pw_name; in main()
110 if ((pwd = getpwnam(user)) == NULL) { in main()
112 gettext("No such user %s\n"), user); in main()
117 (void) _enum_attrs(user, attr, NULL, NULL); in main()
122 user); in main()
/illumos-gate/usr/src/cmd/ypcmd/mknetid/
H A Dmknetid.c66 char *user; member
246 char user[MAXNAMELEN]; local
254 if (user[0] == '-' || user[0] == '+') {
431 storegid(gid, user) in storegid() argument
433 char *user;
440 for (g = groups[val]; g != NULL && strcmp(g->user, user); g = g->next)
444 g->user = malloc((unsigned)strlen(user) + 1);
445 (void) strcpy(g->user, user);
469 printgroups(user, gid) in printgroups() argument
470 char *user; in printgroups()
[all …]

12345678910>>...31