Searched refs:idmap_ctx (Results 1 - 25 of 42) sorted by relevance

12

/sssd/src/responder/pac/
H A Dpacsrv.h34 struct sss_idmap_ctx *idmap_ctx; member in struct:pac_ctx
H A Dpacsrv.c164 &pac_ctx->idmap_ctx);
H A Dpacsrv_cmd.c120 err = sss_idmap_smb_sid_to_sid(pr_ctx->pac_ctx->idmap_ctx,
/sssd/src/providers/ldap/
H A Dsdap_idmap.c30 sdap_idmap_get_configured_external_range(struct sdap_idmap_ctx *idmap_ctx, argument
38 if (idmap_ctx == NULL) {
42 id_ctx = idmap_ctx->id_ctx;
81 sdap_idmap_add_configured_external_range(struct sdap_idmap_ctx *idmap_ctx) argument
88 ret = sdap_idmap_get_configured_external_range(idmap_ctx, &range);
95 id_ctx = idmap_ctx->id_ctx;
97 err = sss_idmap_add_auto_domain_ex(idmap_ctx->map,
111 errno_t sdap_idmap_find_new_domain(struct sdap_idmap_ctx *idmap_ctx, argument
117 ret = sdap_idmap_add_domain(idmap_ctx,
147 struct sdap_idmap_ctx *idmap_ctx local
335 sdap_idmap_add_domain(struct sdap_idmap_ctx *idmap_ctx, const char *dom_name, const char *dom_sid, id_t slice) argument
457 sdap_idmap_sid_to_unix(struct sdap_idmap_ctx *idmap_ctx, const char *sid_str, id_t *id) argument
[all...]
H A Dsdap_idmap.h29 typedef errno_t (find_new_domain_fn_t)(struct sdap_idmap_ctx *idmap_ctx,
44 sdap_idmap_add_domain(struct sdap_idmap_ctx *idmap_ctx,
55 sdap_idmap_sid_to_unix(struct sdap_idmap_ctx *idmap_ctx,
H A Dsdap_async_ad.h29 struct sdap_idmap_ctx *idmap_ctx,
H A Dsdap_async_initgroups_ad.c311 struct sss_idmap_ctx *idmap_ctx; member in struct:sdap_get_ad_tokengroups_state
342 state->idmap_ctx = opts->idmap_ctx->map;
429 err = sss_idmap_bin_sid_to_sid(state->idmap_ctx, el->values[i].data,
698 struct sdap_idmap_ctx *idmap_ctx; member in struct:sdap_ad_tokengroups_initgr_mapping_state
749 state->idmap_ctx = opts->idmap_ctx;
843 struct sdap_idmap_ctx *idmap_ctx,
886 ret = sdap_idmap_sid_to_unix(idmap_ctx, sid, &gid);
999 state->idmap_ctx,
841 sdap_ad_save_group_membership_with_idmapping(const char *username, struct sss_domain_info *user_dom, struct sdap_idmap_ctx *idmap_ctx, size_t num_sids, char **sids) argument
[all...]
H A Dldap_common.h344 struct sdap_idmap_ctx *idmap_ctx,
H A Dsdap_async_users.c105 ret = sdap_idmap_sid_to_unix(opts->idmap_ctx, group_sid_str, &gid);
164 ret = sdap_attrs_get_sid_str(tmpctx, opts->idmap_ctx, attrs,
258 use_id_mapping = sdap_idmap_domain_has_algorithmic_mapping(opts->idmap_ctx,
276 ret = sdap_idmap_sid_to_unix(opts->idmap_ctx, sid_str, &uid);
H A Dldap_id.c117 ctx->opts->idmap_ctx,
180 err = sss_idmap_unix_to_sid(ctx->opts->idmap_ctx->map,
204 sss_idmap_free_sid(ctx->opts->idmap_ctx->map, sid);
697 ctx->opts->idmap_ctx,
737 err = sss_idmap_unix_to_sid(ctx->opts->idmap_ctx->map,
761 sss_idmap_free_sid(ctx->opts->idmap_ctx->map, sid);
H A Dldap_common.c881 struct sdap_idmap_ctx *idmap_ctx,
909 err = sss_idmap_bin_sid_to_sid(idmap_ctx->map,
880 sdap_attrs_get_sid_str(TALLOC_CTX *mem_ctx, struct sdap_idmap_ctx *idmap_ctx, struct sysdb_attrs *sysdb_attrs, const char *sid_attr, char **_sid_str) argument
/sssd/src/tests/cmocka/
H A Dtest_sss_idmap.c51 struct sss_idmap_ctx *idmap_ctx; member in struct:test_ctx
80 &test_ctx->idmap_ctx);
110 err = sss_idmap_add_auto_domain_ex(test_ctx->idmap_ctx, name, sid,
114 err = sss_idmap_add_domain_ex(test_ctx->idmap_ctx, name, sid, &range,
123 err = sss_idmap_add_auto_domain_ex(test_ctx->idmap_ctx, name, sid,
127 err = sss_idmap_add_domain_ex(test_ctx->idmap_ctx, name, sid, &range,
149 err = sss_idmap_calculate_range(test_ctx->idmap_ctx, sid, &slice_num,
157 err = sss_idmap_add_domain_ex(test_ctx->idmap_ctx, name, sid, &range,
238 talloc_free(test_ctx->idmap_ctx);
259 err = sss_idmap_add_domain(test_ctx->idmap_ctx, TEST_DOM_NAM
[all...]
H A Dtest_ipa_idmap.c116 struct sdap_idmap_ctx *idmap_ctx; member in struct:test_ctx
175 &test_ctx->idmap_ctx);
203 will_return(__wrap_sysdb_get_ranges, get_range_list(test_ctx->idmap_ctx));
204 ret = ipa_idmap_get_ranges_from_sysdb(test_ctx->idmap_ctx,
210 ret = ipa_idmap_get_ranges_from_sysdb(test_ctx->idmap_ctx,
H A Dtest_ad_gpo.c277 struct sss_idmap_ctx *idmap_ctx; local
286 &idmap_ctx);
290 ace_dom_sid, idmap_ctx,
292 talloc_free(idmap_ctx);
H A Dtest_ad_common.c253 struct sss_idmap_ctx *idmap_ctx; local
270 &idmap_ctx);
281 ret = ad_get_sids_from_pac(test_ctx, idmap_ctx, logon_info, &user_sid,
306 sss_idmap_free(idmap_ctx);
316 struct sss_idmap_ctx *idmap_ctx; local
334 &idmap_ctx);
351 ret = ad_get_pac_data_from_user_entry(test_ctx, user_msg, idmap_ctx,
379 sss_idmap_free(idmap_ctx);
/sssd/src/tests/
H A Dsss_idmap-tests.c47 struct sss_idmap_ctx *idmap_ctx; variable in typeref:struct:sss_idmap_ctx
65 &idmap_ctx);
68 fail_unless(idmap_ctx != NULL, "sss_idmap_init returned NULL.");
76 &idmap_ctx);
79 fail_unless(idmap_ctx != NULL, "sss_idmap_init returned NULL.");
81 idmap_ctx->idmap_opts.rangesize = 10;
82 idmap_ctx->idmap_opts.extra_slice_init = 5;
89 err = sss_idmap_free(idmap_ctx);
98 err = sss_idmap_add_domain(idmap_ctx, "test.dom", "S-1-5-21-1-2-3", &range);
107 IDMAP_RANGE_MIN + idmap_ctx
[all...]
/sssd/src/providers/ipa/
H A Dipa_idmap.c29 static errno_t ipa_idmap_check_posix_child(struct sdap_idmap_ctx *idmap_ctx, argument
47 err = sss_idmap_domain_has_algorithmic_mapping(idmap_ctx->map, dom_sid_str,
55 err = sss_idmap_domain_by_name_has_algorithmic_mapping(idmap_ctx->map,
74 dom = find_domain_by_sid(idmap_ctx->id_ctx->be->domain, dom_sid_str);
87 forest_root = find_domain_by_name(idmap_ctx->id_ctx->be->domain,
131 err = sss_idmap_add_domain_ex(idmap_ctx->map, dom_name, dom_sid_str,
217 errno_t ipa_idmap_get_ranges_from_sysdb(struct sdap_idmap_ctx *idmap_ctx, argument
240 ret = sysdb_get_ranges(tmp_ctx, idmap_ctx->id_ctx->be->domain->sysdb,
249 idmap_ctx->id_ctx->be->domain->name,
259 err = sss_idmap_add_domain_ex(idmap_ctx
289 ipa_idmap_find_new_domain(struct sdap_idmap_ctx *idmap_ctx, const char *dom_name, const char *dom_sid_str) argument
304 struct sdap_idmap_ctx *idmap_ctx = NULL; local
[all...]
H A Dipa_common.h284 errno_t ipa_idmap_get_ranges_from_sysdb(struct sdap_idmap_ctx *idmap_ctx,
/sssd/src/lib/winbind_idmap_sss/
H A Dwinbind_idmap_sss.c34 struct sss_idmap_ctx *idmap_ctx; member in struct:idmap_sss_ctx
52 &ctx->idmap_ctx);
111 err = sss_idmap_sid_to_smb_sid(ctx->idmap_ctx, sid_str, &sid);
118 sss_idmap_free_smb_sid(ctx->idmap_ctx, sid);
151 err = sss_idmap_smb_sid_to_sid(ctx->idmap_ctx, map[c]->sid, &sid_str);
157 sss_idmap_free_sid(ctx->idmap_ctx, sid_str);
/sssd/src/providers/ad/
H A Dad_pac.h53 struct sss_idmap_ctx *idmap_ctx,
62 struct sss_idmap_ctx *idmap_ctx,
H A Dad_pac.c150 struct sss_idmap_ctx *idmap_ctx,
178 if (idmap_ctx == NULL || logon_info == NULL
203 err = sss_idmap_smb_sid_to_sid(idmap_ctx, info3->base.domain_sid,
293 err = sss_idmap_smb_sid_to_sid(idmap_ctx, info3->sids[s].sid,
305 sss_idmap_free_sid(idmap_ctx, msid_str);
343 sss_idmap_free_sid(idmap_ctx, user_dom_sid_str);
360 struct sss_idmap_ctx *idmap_ctx,
415 ret = ad_get_sids_from_pac(mem_ctx, idmap_ctx, logon_info,
484 id_ctx->opts->idmap_ctx->map,
494 id_ctx->opts->idmap_ctx,
149 ad_get_sids_from_pac(TALLOC_CTX *mem_ctx, struct sss_idmap_ctx *idmap_ctx, struct PAC_LOGON_INFO *logon_info, char **_user_sid_str, char **_primary_group_sid_str, size_t *_num_sids, char *** _sid_list) argument
358 ad_get_pac_data_from_user_entry(TALLOC_CTX *mem_ctx, struct ldb_message *msg, struct sss_idmap_ctx *idmap_ctx, char **_username, char **user_sid, char **primary_group_sid, size_t *num_sids, char ***group_sids) argument
[all...]
H A Dad_subdomains.c243 ad_id_ctx->sdap_id_ctx->opts->idmap_ctx =
244 id_ctx->sdap_id_ctx->opts->idmap_ctx;
280 ad_subdom_store(struct sdap_idmap_ctx *idmap_ctx, argument
334 err = sss_idmap_bin_sid_to_sid(idmap_ctx->map, el->values[0].data,
343 mpg = sdap_idmap_domain_has_algorithmic_mapping(idmap_ctx, name, sid_str);
354 sss_idmap_free_sid(idmap_ctx->map, sid_str);
361 struct sdap_idmap_ctx *idmap_ctx,
449 ret = ad_subdom_store(idmap_ctx, domain, subdomains[c], enumerate);
484 ret = ad_subdom_store(idmap_ctx, domain, subdomains[c], enumerate);
671 struct sdap_idmap_ctx *idmap_ctx; member in struct:ad_get_slave_domain_state
360 ad_subdomains_refresh(struct be_ctx *be_ctx, struct sdap_idmap_ctx *idmap_ctx, struct sdap_options *opts, struct sysdb_attrs **subdomains, size_t num_subdomains, bool root_domain, time_t *_last_refreshed, bool *_changes) argument
939 struct sdap_idmap_ctx *idmap_ctx; member in struct:ad_get_root_domain_state
[all...]
H A Dad_id.c301 struct sdap_idmap_ctx *idmap_ctx,
315 if (!sdap_idmap_domain_has_algorithmic_mapping(idmap_ctx, domain->name,
333 err = sss_idmap_unix_to_sid(idmap_ctx->map, id, &sid);
359 sss_idmap_free_sid(idmap_ctx->map, sid);
407 shortcut = ad_account_can_shortcut(be_ctx, sdap_id_ctx->opts->idmap_ctx,
300 ad_account_can_shortcut(struct be_ctx *be_ctx, struct sdap_idmap_ctx *idmap_ctx, int filter_type, const char *filter_value, const char *filter_domain) argument
H A Dad_domain_info.c314 err = sss_idmap_bin_sid_to_sid(state->opts->idmap_ctx->map,
/sssd/src/responder/nss/
H A Dnsssrv.h74 struct sss_idmap_ctx *idmap_ctx; member in struct:nss_ctx

Completed in 90 milliseconds

12