From 91475e59c01625ee5f6d200d6f69e230d5494089 Mon Sep 17 00:00:00 2001 From: Tomas Halman Date: Fri, 27 Mar 2020 10:22:05 +0100 Subject: [PATCH] SYSDB: override_gid not working for subdomains MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The override_gid is not propagated to subdomain. This patch assigns subdomain's override_gid to the value comming from parent domain. Resolves: https://pagure.io/SSSD/sssd/issue/4061 Reviewed-by: Pavel Březina (cherry picked from commit 626c9c2f41e347c3df6f530fcdf7db96741c385f) --- src/db/sysdb_subdomains.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/db/sysdb_subdomains.c b/src/db/sysdb_subdomains.c index 0ca6a611f..59d2c5118 100644 --- a/src/db/sysdb_subdomains.c +++ b/src/db/sysdb_subdomains.c @@ -169,6 +169,7 @@ struct sss_domain_info *new_subdomain(TALLOC_CTX *mem_ctx, dom->override_shell = parent->override_shell; dom->default_shell = parent->default_shell; dom->homedir_substr = parent->homedir_substr; + dom->override_gid = parent->override_gid; if (parent->sysdb == NULL) { DEBUG(SSSDBG_OP_FAILURE, "Missing sysdb context in parent domain.\n"); -- 2.21.1