/titanic_50/usr/src/uts/common/smbsrv/ |
H A D | smb_sid.h | 234 } smb_sid_t; typedef 265 smb_sid_t *i_sid; 283 boolean_t smb_sid_isvalid(smb_sid_t *); 284 int smb_sid_len(smb_sid_t *); 285 smb_sid_t *smb_sid_dup(smb_sid_t *); 286 smb_sid_t *smb_sid_splice(smb_sid_t *, uint32_t); 287 int smb_sid_getrid(smb_sid_t *, uint32_t *); 288 smb_sid_t *smb_sid_split(smb_sid_t *, uint32_t *); 289 boolean_t smb_sid_cmp(smb_sid_t *, smb_sid_t *); 290 boolean_t smb_sid_islocal(smb_sid_t *); [all …]
|
H A D | smb_idmap.h | 74 smb_sid_t *sim_sid; 86 idmap_stat smb_idmap_getsid(uid_t, int, smb_sid_t **); 87 idmap_stat smb_idmap_getid(smb_sid_t *, uid_t *, int *); 93 smb_sid_t *, int);
|
H A D | ntifs.h | 416 smb_sid_t *se_sid; 559 smb_sid_t *sd_owner; /* SID file owner */ 560 smb_sid_t *sd_group; /* SID group (for POSIX) */
|
/titanic_50/usr/src/common/smbsrv/ |
H A D | smb_sid.c | 39 static smb_sid_t *smb_sid_alloc(size_t); 47 smb_sid_isvalid(smb_sid_t *sid) in smb_sid_isvalid() 62 smb_sid_len(smb_sid_t *sid) in smb_sid_len() 67 return (sizeof (smb_sid_t) - sizeof (uint32_t) in smb_sid_len() 78 smb_sid_t * 79 smb_sid_dup(smb_sid_t *sid) in smb_sid_dup() 81 smb_sid_t *new_sid; in smb_sid_dup() 103 smb_sid_t * 104 smb_sid_splice(smb_sid_t *domain_sid, uint32_t rid) in smb_sid_splice() 106 smb_sid_t *sid; in smb_sid_splice() [all …]
|
H A D | smb_token_xdr.c | 41 static bool_t smb_sid_xdr(XDR *, smb_sid_t *); 206 smb_sid_xdr(XDR *xdrs, smb_sid_t *objp) in smb_sid_xdr()
|
/titanic_50/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_sam.c | 34 static uint32_t smb_sam_lookup_user(char *, smb_sid_t **); 35 static uint32_t smb_sam_lookup_group(char *, smb_sid_t **); 64 static smb_lwka_t *smb_lwka_lookup_sid(smb_sid_t *); 102 smb_sid_t *sid; in smb_sam_lookup_name() 208 smb_sam_lookup_sid(smb_sid_t *sid, smb_account_t *account) in smb_sam_lookup_sid() 313 smb_sam_usr_groups(smb_sid_t *user_sid, smb_ids_t *gids) in smb_sam_usr_groups() 465 smb_sam_grp_ismember(const char *gname, smb_sid_t *sid) in smb_sam_grp_ismember() 508 smb_sam_lookup_user(char *name, smb_sid_t **sid) in smb_sam_lookup_user() 532 smb_sam_lookup_group(char *name, smb_sid_t **sid) in smb_sam_lookup_group() 559 smb_lwka_lookup_sid(smb_sid_t *sid) in smb_lwka_lookup_sid() [all …]
|
H A D | libsmb.h | 607 smb_sid_t *di_binsid; 652 boolean_t smb_domain_lookup_sid(smb_sid_t *, smb_domain_t *); 666 smb_sid_t *gs_sid; 700 int smb_lgrp_add_member(char *, smb_sid_t *, uint16_t); 701 int smb_lgrp_del_member(char *, smb_sid_t *, uint16_t); 706 boolean_t smb_lgrp_is_member(smb_group_t *, smb_sid_t *); 831 smb_sid_t *wka_binsid; 846 smb_wka_t *smb_wka_lookup_sid(smb_sid_t *); 847 smb_sid_t *smb_wka_get_sid(const char *); 858 smb_sid_t *a_sid; [all …]
|
H A D | smb_idmap.c | 70 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) in smb_idmap_getsid() 107 smb_idmap_getid(smb_sid_t *sid, uid_t *id, int *id_type) in smb_idmap_getid() 221 smb_sid_t *sid, int idtype) in smb_idmap_batch_getid() 379 smb_sid_t *sid; in smb_idmap_batch_binsid()
|
H A D | smb_wksids.c | 143 smb_wka_lookup_sid(smb_sid_t *sid) in smb_wka_lookup_sid() 169 smb_sid_t * 173 smb_sid_t *sid = NULL; in smb_wka_get_sid()
|
H A D | smb_lgrp.c | 210 smb_sid_t *lg_machine_sid; 232 static int smb_lgrp_dtbl_getidx(sqlite *, smb_sid_t *, uint16_t, 234 static int smb_lgrp_dtbl_getsid(sqlite *, uint32_t, smb_sid_t **); 251 static int smb_lgrp_getsid(int, uint32_t *, uint16_t, sqlite *, smb_sid_t **); 274 smb_sid_t *sid = NULL; in smb_lgrp_add() 593 smb_lgrp_add_member(char *gname, smb_sid_t *msid, uint16_t sid_type) in smb_lgrp_add_member() 628 smb_lgrp_del_member(char *gname, smb_sid_t *msid, uint16_t sid_type) in smb_lgrp_del_member() 944 smb_lgrp_is_member(smb_group_t *grp, smb_sid_t *sid) in smb_lgrp_is_member() 1832 smb_lgrp_dtbl_getidx(sqlite *db, smb_sid_t *sid, uint16_t sid_type, in smb_lgrp_dtbl_getidx() 1836 smb_sid_t *dom_sid; in smb_lgrp_dtbl_getidx() [all …]
|
/titanic_50/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | lsar_clnt.c | 329 smb_sid_tostr((smb_sid_t *)pd_info->sid, sidstr); in lsar_query_info_policy() 340 smb_sid_tostr((smb_sid_t *)ad_info->sid, sidstr); in lsar_query_info_policy() 352 smb_sid_tostr((smb_sid_t *)dns_info->sid, sidstr); in lsar_query_info_policy() 526 info->a_domsid = smb_sid_dup((smb_sid_t *)domain_entry->domain_sid); in lsar_lookup_names1() 581 info->a_domsid = smb_sid_dup((smb_sid_t *)domain_entry->domain_sid); in lsar_lookup_names2() 636 info->a_domsid = smb_sid_dup((smb_sid_t *)domain_entry->domain_sid); in lsar_lookup_names3() 639 info->a_sid = smb_sid_dup((smb_sid_t *)sid_entry->sid); in lsar_lookup_names3() 700 info->a_domsid = smb_sid_dup((smb_sid_t *)domain_entry->domain_sid); in lsar_lookup_names4() 703 info->a_sid = smb_sid_dup((smb_sid_t *)sid_entry->sid); in lsar_lookup_names4() 715 lsar_lookup_sids(mlsvc_handle_t *lsa_handle, smb_sid_t *sid, in lsar_lookup_sids() [all …]
|
H A D | smb_logon.c | 59 static boolean_t smb_token_is_member(smb_token_t *, smb_sid_t *); 272 smb_sid_t *owner_sid; in smb_token_set_owner() 707 smb_sid_t *user_sid; in smb_token_setup_anon() 731 static smb_sid_t * 751 static smb_sid_t * 779 smb_token_is_member(smb_token_t *token, smb_sid_t *sid) in smb_token_is_member() 781 smb_sid_t *tsid; in smb_token_is_member() 820 smb_sid_tostr((smb_sid_t *)token->tkn_user.i_sid, sidstr); in smb_token_log() 824 smb_sid_tostr((smb_sid_t *)token->tkn_owner.i_sid, sidstr); in smb_token_log() 828 smb_sid_tostr((smb_sid_t *)token->tkn_primary_grp.i_sid, sidstr); in smb_token_log() [all …]
|
H A D | lsalib.h | 56 uint32_t lsa_lookup_sid(smb_sid_t *, smb_account_t *); 77 uint32_t lsar_lookup_sids(mlsvc_handle_t *, smb_sid_t *, smb_account_t *);
|
H A D | netr_logon.c | 123 smb_sid_t *domsid; in netr_setup_token_info3() 125 domsid = (smb_sid_t *)info3->LogonDomainId; in netr_setup_token_info3() 290 smb_sid_t *domsid; in netr_setup_token() 294 domsid = (smb_sid_t *)info3->LogonDomainId; in netr_setup_token() 763 smb_sid_t *domain_sid; in netr_setup_domain_groups() 777 domain_sid = (smb_sid_t *)info3->LogonDomainId; in netr_setup_domain_groups() 803 ids->i_sid = smb_sid_dup((smb_sid_t *)info3->ExtraSids[i].sid); in netr_setup_domain_groups() 823 if (!smb_domain_lookup_sid((smb_sid_t *)info3->LogonDomainId, &di)) in netr_isadmin()
|
H A D | lsalib.c | 44 static uint32_t lsa_lookup_sid_builtin(smb_sid_t *, smb_account_t *); 45 static uint32_t lsa_lookup_sid_domain(smb_sid_t *, smb_account_t *); 115 lsa_lookup_sid(smb_sid_t *sid, smb_account_t *info) in lsa_lookup_sid() 510 lsa_lookup_sid_builtin(smb_sid_t *sid, smb_account_t *ainfo) in lsa_lookup_sid_builtin() 547 lsa_lookup_sid_domain(smb_sid_t *sid, smb_account_t *ainfo) in lsa_lookup_sid_domain()
|
H A D | srvsvc_sd.c | 380 sid_size = smb_sid_len((smb_sid_t *)m_sid); in srvsvc_ace_set_absolute() 443 sid_size = smb_sid_len((smb_sid_t *)m_sid); in srvsvc_sd_set_absolute() 453 sid_size = smb_sid_len((smb_sid_t *)m_sid); in srvsvc_sd_set_absolute()
|
H A D | samlib.h | 121 smb_sid_t *samr_lookup_domain(mlsvc_handle_t *, char *);
|
/titanic_50/usr/src/lib/smbsrv/libfksmbsrv/common/ |
H A D | fksmb_idmap.c | 73 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) in smb_idmap_getsid() 110 smb_idmap_getid(smb_sid_t *sid, uid_t *id, int *id_type) in smb_idmap_getid() 222 smb_sid_t *sid, int idtype) in smb_idmap_batch_getid() 382 smb_sid_t *sid; in smb_idmap_batch_binsid()
|
/titanic_50/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_idmap.c | 80 smb_idmap_getsid(uid_t id, int idtype, smb_sid_t **sid) in smb_idmap_getsid() 132 smb_idmap_getid(smb_sid_t *sid, uid_t *id, int *idtype) in smb_idmap_getid() 247 smb_sid_t *sid, int idtype) in smb_idmap_batch_getid() 389 smb_sid_t *sid; in smb_idmap_batch_binsid()
|
H A D | smb_quota.c | 138 smb_sid_t *sid; in smb_quota_decode_sids() 219 smb_sid_t *sid; in smb_quota_decode_quotas() 298 smb_sid_t *sid; in smb_quota_encode_quotas() 372 smb_sid_t *sid; in smb_quota_query_user_quota()
|
H A D | smb_nt_transact_security.c | 285 smb_encode_sid(mbuf_chain_t *mbc, smb_sid_t *sid) in smb_encode_sid() 444 smb_sid_t * 450 smb_sid_t *sid; in smb_decode_sid() 457 if (bytes_left < (int)sizeof (smb_sid_t)) in smb_decode_sid() 466 sidlen = sizeof (smb_sid_t) - sizeof (uint32_t) + in smb_decode_sid()
|
H A D | smb_sd.c | 197 smb_sid_t *sid; in smb_sd_tofs() 288 smb_sid_t *sid; in smb_sd_fromfs()
|
/titanic_50/usr/src/lib/smbsrv/libmlrpc/common/ |
H A D | ndr_heap.c | 255 smb_sid_t * 256 ndr_heap_siddup(ndr_heap_t *heap, smb_sid_t *sid) in ndr_heap_siddup() 258 smb_sid_t *new_sid; in ndr_heap_siddup()
|
H A D | libmlrpc.h | 410 smb_sid_t *ndr_heap_siddup(ndr_heap_t *, smb_sid_t *);
|
/titanic_50/usr/src/lib/smbsrv/libsmbns/common/ |
H A D | smbns_netlogon.c | 52 char *, smb_sid_t *); 83 smb_sid_t *sid = NULL; in smb_netlogon_request() 350 smb_sid_t *domain_sid) in smb_netlogon_samlogon()
|