Skip to content

Commit

Permalink
subdomains: allow to inherit case_sensitive=Preserving
Browse files Browse the repository at this point in the history
Resolves: SSSD#5250

:feature: `case_sensitive` option can be now inherited by subdomains
  • Loading branch information
pbrezina committed Nov 12, 2020
1 parent a2440ff commit 09961a7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/db/sysdb_subdomains.c
Expand Up @@ -145,6 +145,14 @@ struct sss_domain_info *new_subdomain(TALLOC_CTX *mem_ctx,
dom->ignore_group_members = parent->ignore_group_members;
}

/* Inherit case_sensitive. All subdomains are always case insensitive,
* but we want to inherit case preserving which is set with
* case_sensitive=Preserving. */
inherit_option = string_in_list(CONFDB_DOMAIN_CASE_SENSITIVE,
parent->sd_inherit, false);
dom->case_sensitive = false;
dom->case_preserve = inherit_option ? parent->case_preserve : false;

dom->trust_direction = trust_direction;
/* If the parent domain explicitly limits ID ranges, the subdomain
* should honour the limits as well.
Expand All @@ -156,14 +164,12 @@ struct sss_domain_info *new_subdomain(TALLOC_CTX *mem_ctx,
dom->cache_credentials_min_ff_length =
parent->cache_credentials_min_ff_length;
dom->cached_auth_timeout = parent->cached_auth_timeout;
dom->case_sensitive = false;
dom->user_timeout = parent->user_timeout;
dom->group_timeout = parent->group_timeout;
dom->netgroup_timeout = parent->netgroup_timeout;
dom->service_timeout = parent->service_timeout;
dom->resolver_timeout = parent->resolver_timeout;
dom->names = parent->names;

dom->override_homedir = parent->override_homedir;
dom->fallback_homedir = parent->fallback_homedir;
dom->subdomain_homedir = parent->subdomain_homedir;
Expand Down

0 comments on commit 09961a7

Please sign in to comment.