summaryrefslogtreecommitdiffstats
path: root/src/confdb/confdb.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-08-28 10:49:32 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-08-28 18:07:04 +0200
commit33c865412732554ef255e93c4e7a58b0bce963c6 (patch)
tree07f4d57d5e02984d69e148d76cad73ed0a6308e3 /src/confdb/confdb.c
parenta6cca9c284724fafd670a3163812f248ba53ad97 (diff)
downloadsssd-33c865412732554ef255e93c4e7a58b0bce963c6.tar.gz
sssd-33c865412732554ef255e93c4e7a58b0bce963c6.tar.xz
sssd-33c865412732554ef255e93c4e7a58b0bce963c6.zip
Add a new option to control subdomain enumeration
Diffstat (limited to 'src/confdb/confdb.c')
-rw-r--r--src/confdb/confdb.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c
index 693118e79..6527ede4b 100644
--- a/src/confdb/confdb.c
+++ b/src/confdb/confdb.c
@@ -1129,6 +1129,19 @@ static int confdb_get_domain_internal(struct confdb_ctx *cdb,
goto done;
}
+ tmp = ldb_msg_find_attr_as_string(res->msgs[0],
+ CONFDB_SUBDOMAIN_ENUMERATE,
+ CONFDB_DEFAULT_SUBDOMAIN_ENUMERATE);
+ if (tmp != NULL) {
+ ret = split_on_separator(domain, tmp, ',', true, true,
+ &domain->sd_enumerate, NULL);
+ if (ret != 0) {
+ DEBUG(SSSDBG_FATAL_FAILURE,
+ ("Cannot parse %s\n", CONFDB_SUBDOMAIN_ENUMERATE));
+ goto done;
+ }
+ }
+
*_domain = domain;
ret = EOK;
done: