diff options
Diffstat (limited to 'src/confdb')
-rw-r--r-- | src/confdb/confdb.c | 9 | ||||
-rw-r--r-- | src/confdb/confdb.h | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c index fdf409f9..87d33f9b 100644 --- a/src/confdb/confdb.c +++ b/src/confdb/confdb.c @@ -849,9 +849,16 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb, goto done; } + tmp = ldb_msg_find_attr_as_string(res->msgs[0], + CONFDB_NSS_OVERRIDE_HOMEDIR, NULL); + domain->override_homedir = talloc_strdup(domain, tmp); + if (!domain->name) { + ret = ENOMEM; + goto done; + } + *_domain = domain; ret = EOK; - done: talloc_free(tmp_ctx); return ret; diff --git a/src/confdb/confdb.h b/src/confdb/confdb.h index 4e8a6dd8..20e82b4d 100644 --- a/src/confdb/confdb.h +++ b/src/confdb/confdb.h @@ -72,6 +72,7 @@ #define CONFDB_NSS_FILTER_USERS "filter_users" #define CONFDB_NSS_FILTER_GROUPS "filter_groups" #define CONFDB_NSS_PWFIELD "pwfield" +#define CONFDB_NSS_OVERRIDE_HOMEDIR "override_homedir" /* PAM */ #define CONFDB_PAM_CONF_ENTRY "config/pam" @@ -145,6 +146,7 @@ struct sss_domain_info { bool legacy_passwords; gid_t override_gid; + const char *override_homedir; uint32_t entry_cache_timeout; |