diff options
Diffstat (limited to 'src/confdb')
-rw-r--r-- | src/confdb/confdb.c | 3 | ||||
-rw-r--r-- | src/confdb/confdb.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c index e8f58716..cbd42714 100644 --- a/src/confdb/confdb.c +++ b/src/confdb/confdb.c @@ -968,7 +968,8 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb, } tmp = ldb_msg_find_attr_as_string(res->msgs[0], - CONFDB_DOMAIN_SUBDOMAIN_HOMEDIR, NULL); + CONFDB_DOMAIN_SUBDOMAIN_HOMEDIR, + CONFDB_DOMAIN_DEFAULT_SUBDOMAIN_HOMEDIR); if (tmp != NULL) { domain->subdomain_homedir = talloc_strdup(domain, tmp); if (!domain->subdomain_homedir) { diff --git a/src/confdb/confdb.h b/src/confdb/confdb.h index 139dd903..0c04112e 100644 --- a/src/confdb/confdb.h +++ b/src/confdb/confdb.h @@ -156,6 +156,7 @@ #define CONFDB_DOMAIN_OVERRIDE_GID "override_gid" #define CONFDB_DOMAIN_CASE_SENSITIVE "case_sensitive" #define CONFDB_DOMAIN_SUBDOMAIN_HOMEDIR "subdomain_homedir" +#define CONFDB_DOMAIN_DEFAULT_SUBDOMAIN_HOMEDIR "/home/%d/%u" #define CONFDB_DOMAIN_USER_CACHE_TIMEOUT "entry_cache_user_timeout" #define CONFDB_DOMAIN_GROUP_CACHE_TIMEOUT "entry_cache_group_timeout" |