|
|
2fc102 |
From 7bc2cfa445142254276d712a0ff6622eaf670253 Mon Sep 17 00:00:00 2001
|
|
|
2fc102 |
From: Pavel Reichl <preichl@redhat.com>
|
|
|
2fc102 |
Date: Wed, 15 Jan 2014 15:52:35 +0000
|
|
|
2fc102 |
Subject: [PATCH 53/53] NSS: add support for subdomain_homedir
|
|
|
2fc102 |
|
|
|
2fc102 |
Resolves:
|
|
|
2fc102 |
https://fedorahosted.org/sssd/ticket/2169
|
|
|
2fc102 |
---
|
|
|
2fc102 |
src/responder/nss/nsssrv_cmd.c | 8 ++++++++
|
|
|
2fc102 |
1 file changed, 8 insertions(+)
|
|
|
2fc102 |
|
|
|
2fc102 |
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
|
|
|
2fc102 |
index c59078b545842561a7e5f62e9a99da6057b23660..9ac3680de4d6ff12fe0c77a3963f84934e385276 100644
|
|
|
2fc102 |
--- a/src/responder/nss/nsssrv_cmd.c
|
|
|
2fc102 |
+++ b/src/responder/nss/nsssrv_cmd.c
|
|
|
2fc102 |
@@ -201,6 +201,14 @@ static const char *get_homedir_override(TALLOC_CTX *mem_ctx,
|
|
|
2fc102 |
name, uid, homedir, dom->name, NULL);
|
|
|
2fc102 |
}
|
|
|
2fc102 |
|
|
|
2fc102 |
+ /* Override home directory location for subdomains.
|
|
|
2fc102 |
+ * This option can be overriden by override_homedir.
|
|
|
2fc102 |
+ */
|
|
|
2fc102 |
+ if (IS_SUBDOMAIN(dom) && dom->subdomain_homedir) {
|
|
|
2fc102 |
+ return expand_homedir_template(mem_ctx, dom->subdomain_homedir,
|
|
|
2fc102 |
+ name, uid, homedir, dom->name, NULL);
|
|
|
2fc102 |
+ }
|
|
|
2fc102 |
+
|
|
|
2fc102 |
if (!homedir || *homedir == '\0') {
|
|
|
2fc102 |
/* In the case of a NULL or empty homedir, check to see if
|
|
|
2fc102 |
* we have a fallback homedir to use.
|
|
|
2fc102 |
--
|
|
|
2fc102 |
1.8.4.2
|
|
|
2fc102 |
|