Searched defs:dom_sid (Results 1 - 8 of 8) sorted by relevance

/sssd-io/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
/sssd-io/src/lib/idmap/
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_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.c362 struct sss_dom_sid *dom_sid)
364 return sss_idmap_free_ptr(ctx, dom_sid);
368 struct dom_sid *smb_sid)
902 static bool is_sid_from_dom(const char *dom_sid, const char *sid, argument
907 if (dom_sid == NULL) {
911 dom_sid_len = strlen(dom_sid);
918 return strncmp(sid, dom_sid, dom_sid_len) == 0;
941 const char *dom_sid,
953 secondary_name = generate_sec_slice_name(ctx, dom_sid, first_rid);
1178 const char *dom_sid,
361 sss_idmap_free_dom_sid(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid) argument
939 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
1177 generate_sid(struct sss_idmap_ctx *ctx, const char *dom_sid, uint32_t rid, char **_sid) argument
1267 sss_idmap_dom_sid_to_unix(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid, uint32_t *id) argument
1334 sss_idmap_check_dom_sid_to_unix(struct sss_idmap_ctx *ctx, struct sss_dom_sid *dom_sid, uint32_t id) argument
1406 struct sss_dom_sid *dom_sid = NULL; local
1542 sss_idmap_domain_has_algorithmic_mapping(struct sss_idmap_ctx *ctx, const char *dom_sid, bool *has_algorithmic_mapping) argument
[all...]
/sssd-io/src/providers/ldap/
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,
537 const char *dom_sid)
550 err = sss_idmap_domain_has_algorithmic_mapping(ctx->map, dom_sid,
575 if (dom_sid == NULL) {
585 if (is_domain_sid(dom_sid)) {
586 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
535 sdap_idmap_domain_has_algorithmic_mapping(struct sdap_idmap_ctx *ctx, const char *dom_name, const char *dom_sid) argument
[all...]
/sssd-io/src/sss_client/libwbclient/
H A Dwbc_sid_sssd.c173 wbcErr wbcLookupRids(struct wbcDomainSid *dom_sid, argument
189 obj_sid.sid_rev_num = dom_sid->sid_rev_num;
190 obj_sid.num_auths = dom_sid->num_auths + 1;
192 obj_sid.id_auth[c] = dom_sid->id_auth[c];
195 obj_sid.sub_auths[c] = dom_sid->sub_auths[c];
257 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
/sssd-io/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...]

Completed in 1207 milliseconds