/sssd/src/db/ |
H A D | sysdb_ranges.c | 167 errno_t sysdb_range_create(struct sysdb_ctx *sysdb, struct range_info *range) argument 174 if ((range->trusted_dom_sid == NULL && range->secondary_base_rid == 0) || 175 (range->trusted_dom_sid != NULL && range->secondary_base_rid != 0)) { 177 DEBUG(SSSDBG_OP_FAILURE, "Invalid range, skipping. Expected that " 195 SYSDB_TMPL_RANGE, range->name); 204 if (range->trusted_dom_sid == NULL && range->secondary_base_rid != 0) { 210 (unsigned long) range [all...] |
/sssd/src/providers/ipa/ |
H A D | ipa_idmap.c | 40 struct sss_idmap_range range; local 116 "Forest root does not have range type [%s].\n", 122 range.min = r->base_id; 123 range.max = r->base_id + r->id_range_size -1; 132 &range, range_id, 0, true); 135 "Could not add range [%s] to ID map\n", range_id); 182 DEBUG(SSSDBG_MINOR_FAILURE, "Cannot determine range type, " \ 183 "for id range [%s].\n", 204 DEBUG(SSSDBG_MINOR_FAILURE, "Range type [%s] of id range " \ 228 struct sss_idmap_range range; local [all...] |
/sssd/src/providers/ldap/ |
H A D | sdap_idmap.c | 31 struct sss_idmap_range *range) 74 range->min = min; 75 range->max =max; 84 struct sss_idmap_range range; local 88 ret = sdap_idmap_get_configured_external_range(idmap_ctx, &range); 99 id_ctx->be->domain->domain_id, &range, 177 "Invalid settings for range selection: " 186 "Range size does not divide evenly. Uppermost range will " 219 /* Setup range for externally managed IDs, i.e. IDs are read from the 341 struct sss_idmap_range range; local 30 sdap_idmap_get_configured_external_range(struct sdap_idmap_ctx *idmap_ctx, struct sss_idmap_range *range) argument [all...] |
/sssd/src/tests/cmocka/ |
H A D | test_ipa_idmap.c | 44 struct sss_idmap_range range; local 58 /* working IPA_RANGE_LOCAL range */ 62 /* working old-style IPA_RANGE_LOCAL range without range type */ 69 /* old-style range with SID and secondary base rid */ 73 /* working IPA_RANGE_AD_TRUST range */ 77 /* working old-style IPA_RANGE_AD_TRUST range without range type */ 80 /* working IPA_RANGE_AD_TRUST_POSIX range */ 89 &rid, &range, [all...] |
H A D | test_sss_idmap.c | 90 struct sss_idmap_range range; local 98 range.min = TEST_2_RANGE_MIN; 99 range.max = TEST_2_RANGE_MAX; 103 range.min = TEST_RANGE_MIN; 104 range.max = TEST_RANGE_MAX; 111 &range, NULL, 0, external_mapping, 114 err = sss_idmap_add_domain_ex(test_ctx->idmap_ctx, name, sid, &range, 119 range.min += TEST_OFFSET; 120 range.max += TEST_OFFSET; 124 &range, NUL 137 struct sss_idmap_range range; local 250 struct sss_idmap_range range; local [all...] |
/sssd/src/tests/ |
H A D | sss_idmap-tests.c | 96 struct sss_idmap_range range = {IDMAP_RANGE_MIN, IDMAP_RANGE_MAX}; local 98 err = sss_idmap_add_domain(idmap_ctx, "test.dom", "S-1-5-21-1-2-3", &range); 105 struct sss_idmap_range range = { local 111 &range, NULL, 0, false, NULL, NULL); 131 struct sss_idmap_range range = { local 137 &range, NULL, 0, false, cb, NULL); 169 struct sss_idmap_range range = { local 177 &range, NULL, 0, false, cb2, pvt); 245 struct sss_idmap_range range = {IDMAP_RANGE_MIN, IDMAP_RANGE_MAX}; local 248 err = sss_idmap_add_domain(idmap_ctx, "test.dom", "S-1-5-21-1-2-3", &range); 276 struct sss_idmap_range range = {IDMAP_RANGE_MIN, IDMAP_RANGE_MAX}; local [all...] |
/sssd/src/lib/idmap/ |
H A D | sss_idmap.c | 182 return "IDMAP range not found"; 363 static bool check_overlap(struct idmap_range_params *range, argument 366 return ((range->min_id <= min && range->max_id >= max) 367 || (range->min_id >= min && range->min_id <= max) 368 || (range->max_id >= min && range->max_id <= max)); 422 /* Hash the range identifier string */ 426 * to determine its optimal position in the range 542 struct sss_idmap_range range; local 569 struct sss_idmap_range range; local 701 sss_idmap_add_domain_ex(struct sss_idmap_ctx *ctx, const char *domain_name, const char *domain_sid, struct sss_idmap_range *range, const char *range_id, uint32_t rid, bool external_mapping) argument 782 sss_idmap_add_auto_domain_ex(struct sss_idmap_ctx *ctx, const char *domain_name, const char *domain_sid, struct sss_idmap_range *range, const char *range_id, uint32_t rid, bool external_mapping, idmap_store_cb cb, void *pvt) argument 842 sss_idmap_add_domain(struct sss_idmap_ctx *ctx, const char *domain_name, const char *domain_sid, struct sss_idmap_range *range) argument 922 struct idmap_range_params *range; local 955 spawn_dom(struct sss_idmap_ctx *ctx, struct idmap_domain_info *parent, struct idmap_range_params *range) argument 1023 struct idmap_range_params *range = NULL; local [all...] |