diff options
author | Sumit Bose <sbose@redhat.com> | 2012-06-25 15:16:35 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-06-25 11:10:54 -0400 |
commit | efc4a645d50f68d2a289c7e8a05bedf051d3c67d (patch) | |
tree | 678f8aa430cac95390767203d359eb5638ea3866 /src/confdb | |
parent | d783d4562c704ccc65143370a4e0c2dfd91c61d2 (diff) | |
download | sssd-efc4a645d50f68d2a289c7e8a05bedf051d3c67d.tar.gz sssd-efc4a645d50f68d2a289c7e8a05bedf051d3c67d.tar.bz2 sssd-efc4a645d50f68d2a289c7e8a05bedf051d3c67d.zip |
Set default for subdomain_homedir
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" |