diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-12-02 14:19:09 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-06-02 19:07:57 +0200 |
commit | ae0a5011e2644eaa482ea1b9e1451eff05c676b9 (patch) | |
tree | 5bd7d3a18835317192c9a05eeae6b3234104a489 /src/responder/pac | |
parent | 5cd660aaa885bca95ac3dca660bb77e5786d5f8e (diff) | |
download | sssd-ae0a5011e2644eaa482ea1b9e1451eff05c676b9.tar.gz sssd-ae0a5011e2644eaa482ea1b9e1451eff05c676b9.tar.xz sssd-ae0a5011e2644eaa482ea1b9e1451eff05c676b9.zip |
NSS: Add option to expand homedir template format
LDAP server can contain template for home directory instead of plain string.
This patch adds new expand option "%H", which will be replaced with value
from configuration option homedir_substring (from sssd.conf)
Resolves:
https://fedorahosted.org/sssd/ticket/1853
Diffstat (limited to 'src/responder/pac')
-rw-r--r-- | src/responder/pac/pacsrv_utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/responder/pac/pacsrv_utils.c b/src/responder/pac/pacsrv_utils.c index fe7e88934..7d37cda87 100644 --- a/src/responder/pac/pacsrv_utils.c +++ b/src/responder/pac/pacsrv_utils.c @@ -446,6 +446,7 @@ errno_t get_pwd_from_pac(TALLOC_CTX *mem_ctx, homedir_ctx.uid = pwd->pw_uid; homedir_ctx.domain = dom->name; homedir_ctx.flatname = dom->flat_name; + homedir_ctx.config_homedir_substr = dom->homedir_substr; pwd->pw_dir = expand_homedir_template(pwd, dom->subdomain_homedir, &homedir_ctx); |