summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-01-14 10:55:39 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-01-15 17:15:44 +0100
commitc373732505c9a73a9a8b17533dafc618c95ea331 (patch)
tree300e5a490b5101d822d7450afcf4dcc46c3e2f37
parent1c585a6d25e5a0f4d1627b1bf6c4e5bc7c81835e (diff)
downloadsssd-c373732505c9a73a9a8b17533dafc618c95ea331.tar.gz
sssd-c373732505c9a73a9a8b17533dafc618c95ea331.tar.xz
sssd-c373732505c9a73a9a8b17533dafc618c95ea331.zip
UTIL: Inherit parent domain's default_shell
Some override parameters were not inherited when creating subdomains. Especially with AD trusts, this gave strange results.
-rw-r--r--src/util/domain_info_utils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/domain_info_utils.c b/src/util/domain_info_utils.c
index 5e7b2f2b6..50b5f06f5 100644
--- a/src/util/domain_info_utils.c
+++ b/src/util/domain_info_utils.c
@@ -275,10 +275,13 @@ struct sss_domain_info *new_subdomain(TALLOC_CTX *mem_ctx,
dom->group_timeout = parent->group_timeout;
dom->netgroup_timeout = parent->netgroup_timeout;
dom->service_timeout = parent->service_timeout;
- dom->override_homedir = parent->override_homedir;
dom->names = parent->names;
+ dom->override_homedir = parent->override_homedir;
+ dom->fallback_homedir = parent->fallback_homedir;
dom->subdomain_homedir = parent->subdomain_homedir;
+ dom->override_shell = parent->override_shell;
+ dom->default_shell = parent->default_shell;
if (parent->sysdb == NULL) {
DEBUG(SSSDBG_OP_FAILURE, ("Missing sysdb context in parent domain.\n"));