Searched refs:dom_sid (Results 1 - 18 of 18) sorted by relevance

/sssd/src/lib/idmap/
H A Dsss_idmap_conv.c50 struct sss_dom_sid *dom_sid; local
59 dom_sid = ctx->alloc_func(sizeof(struct sss_dom_sid), ctx->alloc_pvt);
60 if (dom_sid == NULL) {
63 memset(dom_sid, 0, sizeof(struct sss_dom_sid));
66 dom_sid->sid_rev_num = (uint8_t) *(bin_sid + p);
70 dom_sid->num_auths = (uint8_t) *(bin_sid + p);
76 if (dom_sid->num_auths > SID_SUB_AUTHS) {
83 dom_sid->id_auth[i] = (uint8_t) *(bin_sid + p);
88 for (i = 0; i < dom_sid->num_auths; i++) {
92 dom_sid
105 sss_idmap_dom_sid_to_bin_sid(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid, uint8_t **_bin_sid, size_t *_length) argument
161 sss_idmap_dom_sid_to_sid(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid, char **_sid) argument
233 struct sss_dom_sid *dom_sid; local
335 struct sss_dom_sid *dom_sid = NULL; local
368 struct sss_dom_sid *dom_sid = NULL; local
398 struct sss_dom_sid *dom_sid = NULL; local
428 struct sss_dom_sid *dom_sid = NULL; local
453 sss_idmap_dom_sid_to_smb_sid(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid, struct dom_sid **_smb_sid) argument
484 struct sss_dom_sid *dom_sid; local
513 struct sss_dom_sid *dom_sid = NULL; local
544 struct sss_dom_sid *dom_sid = NULL; local
[all...]
H A Dsss_idmap.h100 const char *dom_sid,
128 * Placeholder for Samba's struct dom_sid. Consumers of libsss_idmap should
129 * include an appropriate Samba header file to define struct dom_sid. We use
132 struct dom_sid;
239 * @param[in] dom_sid Zero-terminated string representation of the domain
253 const char *dom_sid,
444 * @param[in] dom_sid SID structure
455 struct sss_dom_sid *dom_sid,
479 * @brief Translate a Samba dom_sid stucture to a unix UID or GID
482 * @param[in] smb_sid Samba dom_sid structur
[all...]
H A Dsss_idmap_private.h66 * file. We use it here to be able to offer conversions form struct dom_sid to
77 struct dom_sid { struct
H A Dsss_idmap.c346 struct sss_dom_sid *dom_sid)
348 return sss_idmap_free_ptr(ctx, dom_sid);
352 struct dom_sid *smb_sid)
876 static bool is_sid_from_dom(const char *dom_sid, const char *sid, argument
881 if (dom_sid == NULL) {
885 dom_sid_len = strlen(dom_sid);
892 return strncmp(sid, dom_sid, dom_sid_len) == 0;
915 const char *dom_sid,
927 secondary_name = generate_sec_slice_name(ctx, dom_sid, first_rid);
1152 const char *dom_sid,
345 sss_idmap_free_dom_sid(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid) argument
913 get_range(struct sss_idmap_ctx *ctx, struct idmap_range_params *helpers, const char *dom_sid, long long rid, struct idmap_range_params **_range) argument
1151 generate_sid(struct sss_idmap_ctx *ctx, const char *dom_sid, uint32_t rid, char **_sid) argument
1241 sss_idmap_dom_sid_to_unix(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid, uint32_t *id) argument
1308 sss_idmap_check_dom_sid_to_unix(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid, uint32_t id) argument
1380 struct sss_dom_sid *dom_sid = NULL; local
1516 sss_idmap_domain_has_algorithmic_mapping(struct sss_idmap_ctx *ctx, const char *dom_sid, bool *has_algorithmic_mapping) argument
[all...]
/sssd/src/responder/pac/
H A Dpacsrv.h35 struct dom_sid *my_dom_sid;
/sssd/src/providers/ldap/
H A Dsdap_idmap.h46 const char *dom_sid,
61 const char *dom_sid);
H A Dsdap_idmap.c337 const char *dom_sid,
356 ret = sss_idmap_calculate_range(idmap_ctx->map, dom_sid, &slice, &range);
365 "Adding domain [%s] as slice [%"SPRIid"]\n", dom_sid, slice);
385 err = sss_idmap_add_auto_domain_ex(idmap_ctx->map, dom_name, dom_sid,
400 dom_name, dom_sid,
536 const char *dom_sid)
549 err = sss_idmap_domain_has_algorithmic_mapping(ctx->map, dom_sid,
574 if (dom_sid == NULL) {
584 if (is_domain_sid(dom_sid)) {
585 new_dom_sid = discard_const(dom_sid);
335 sdap_idmap_add_domain(struct sdap_idmap_ctx *idmap_ctx, const char *dom_name, const char *dom_sid, id_t slice) argument
534 sdap_idmap_domain_has_algorithmic_mapping(struct sdap_idmap_ctx *ctx, const char *dom_name, const char *dom_sid) argument
[all...]
/sssd/src/tests/
H A Dsss_idmap-tests.c42 struct dom_sid test_smb_sid = {1, 5, {0, 0, 0, 0, 0, 5}, {21, 2127521184, 1604012920, 1887927527, 72713, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}};
118 const char *dom_sid,
147 const char *dom_sid,
158 dom_name, dom_sid, range_id, min_id, max_id, first_rid);
486 struct sss_dom_sid *dom_sid = NULL; local
488 err = sss_idmap_sid_to_dom_sid(idmap_ctx, "S-1-5-21-1-2-3-1000", &dom_sid);
491 err = sss_idmap_dom_sid_to_unix(idmap_ctx, dom_sid, &id);
497 sss_idmap_free_dom_sid(idmap_ctx, dom_sid);
555 struct sss_dom_sid *dom_sid = NULL; local
558 err = sss_idmap_unix_to_dom_sid(idmap_ctx, 10000, &dom_sid);
117 cb(const char *dom_name, const char *dom_sid, const char *range_id, uint32_t min_id, uint32_t max_id, uint32_t first_rid, void *pvt) argument
146 cb2(const char *dom_name, const char *dom_sid, const char *range_id, uint32_t min_id, uint32_t max_id, uint32_t first_rid, void *pvt) argument
605 struct sss_dom_sid *dom_sid = NULL; local
633 struct sss_dom_sid *dom_sid = NULL; local
659 struct sss_dom_sid *dom_sid = NULL; local
728 struct sss_dom_sid *dom_sid = NULL; local
[all...]
/sssd/src/db/
H A Dsysdb_idmap.c52 const char *dom_sid,
70 dn = sysdb_idmap_dn(tmp_ctx, domain, dom_sid);
105 dom_name, dom_sid, (unsigned long)slice_num);
132 lret = ldb_msg_add_string(update_msg, SYSDB_IDMAP_SID_ATTR, dom_sid);
190 dom_sid);
199 dom_sid);
212 dom_sid);
229 dom_sid, old_name, dom_name);
50 sysdb_idmap_store_mapping(struct sss_domain_info *domain, const char *dom_name, const char *dom_sid, id_t slice_num) argument
H A Dsysdb.h1189 const char *dom_sid,
/sssd/src/lib/winbind_idmap_sss/
H A Dwinbind_idmap_sss.h62 struct dom_sid *sid;
H A Dwinbind_idmap_sss.c70 struct dom_sid *sid;
117 memcpy(map[c]->sid, sid, sizeof(struct dom_sid));
/sssd/src/sss_client/libwbclient/
H A Dwbc_sid_sssd.c167 wbcErr wbcLookupRids(struct wbcDomainSid *dom_sid, argument
183 obj_sid.sid_rev_num = dom_sid->sid_rev_num;
184 obj_sid.num_auths = dom_sid->num_auths + 1;
186 obj_sid.id_auth[c] = dom_sid->id_auth[c];
189 obj_sid.sub_auths[c] = dom_sid->sub_auths[c];
251 wbcErr wbcGetSidAliases(const struct wbcDomainSid *dom_sid, argument
H A Dwbc_ctx_sssd.c83 struct wbcDomainSid *dom_sid,
103 const struct wbcDomainSid *dom_sid,
82 wbcCtxLookupRids(struct wbcContext *ctx, struct wbcDomainSid *dom_sid, int num_rids, uint32_t *rids, const char **domain_name, const char ***names, enum wbcSidType **types) argument
102 wbcCtxGetSidAliases(struct wbcContext *ctx, const struct wbcDomainSid *dom_sid, struct wbcDomainSid *sids, uint32_t num_sids, uint32_t **alias_rids, uint32_t *num_alias_rids) argument
H A Dwbclient_sssd.h741 struct wbcDomainSid *dom_sid,
751 wbcErr wbcLookupRids(struct wbcDomainSid *dom_sid,
779 const struct wbcDomainSid *dom_sid,
788 wbcErr wbcGetSidAliases(const struct wbcDomainSid *dom_sid,
/sssd/src/tests/cmocka/
H A Dtest_ad_gpo.c272 struct dom_sid ace_dom_sid,
305 struct dom_sid ace_dom_sid = {1, 4, {0, 0, 0, 0, 0, 5}, {21, 2, 3, 4}};
320 struct dom_sid ace_dom_sid = {1, 4, {0, 0, 0, 0, 0, 5}, {21, 2, 3, 4}};
/sssd/src/providers/ad/
H A Dad_gpo_ndr.c254 struct dom_sid *r)
H A Dad_gpo.c506 ad_gpo_dom_sid_equal(const struct dom_sid *sid1, const struct dom_sid *sid2)
637 struct dom_sid ace_dom_sid,
642 struct dom_sid *user_dom_sid;
643 struct dom_sid *group_dom_sid;

Completed in 72 milliseconds