Lines Matching defs:range
182 return "IDMAP range not found";
363 static bool check_overlap(struct idmap_range_params *range,
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.
440 /* This range overlaps one already registered
542 struct sss_idmap_range range;
546 range.min = dom->range_params.min_id;
547 range.max = dom->range_params.max_id;
550 &range,
569 struct sss_idmap_range range;
574 range.min = dom->range_params.min_id;
575 range.max = dom->range_params.max_id;
578 &range,
704 struct sss_idmap_range *range,
718 if (range == NULL) {
751 dom->range_params.min_id = range->min;
752 dom->range_params.max_id = range->max;
785 struct sss_idmap_range *range,
794 err = sss_idmap_add_domain_ex(ctx, domain_name, domain_sid, range,
807 if ((range->max - range->min + 1) != ctx->idmap_opts.rangesize) {
845 struct sss_idmap_range *range)
847 return sss_idmap_add_domain_ex(ctx, domain_name, domain_sid, range, NULL,
922 struct idmap_range_params *range;
935 /* Utilize helper's range. */
936 err = construct_range(ctx, helper, secondary_name, &range);
938 /* Have to generate a whole new range. */
939 err = generate_slice(ctx, secondary_name, first_rid, &range);
946 *_range = range;
957 struct idmap_range_params *range)
963 tmp.min = range->min_id;
964 tmp.max = range->max_id;
969 &tmp, range->range_id,
970 range->first_rid, false);
978 if (ranges_eq(&it->range_params, range)) {
1023 struct idmap_range_params *range = NULL;
1030 err = get_range(ctx, matched_dom->helpers, matched_dom->sid, rid, &range);
1035 err = spawn_dom(ctx, matched_dom, range);
1040 if (!comp_id(range, rid, _id)) {
1048 if (range != NULL) {
1049 ctx->free_func(range->range_id, ctx->alloc_pvt);
1051 ctx->free_func(range, ctx->alloc_pvt);