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