summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2014-11-07 21:36:12 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-11-20 11:40:03 +0100
commit0271a86e2c1efd248b3c8df14178d0d401f92d08 (patch)
treea124058d07fec6688579fd080f419bb6a090594d /src/util
parent2dfd383413d1c5bfc031f8396eccd1108c899e68 (diff)
downloadsssd-0271a86e2c1efd248b3c8df14178d0d401f92d08.tar.gz
sssd-0271a86e2c1efd248b3c8df14178d0d401f92d08.tar.xz
sssd-0271a86e2c1efd248b3c8df14178d0d401f92d08.zip
Enable views for all domains
Currently views and overrides were only available for sub-domains, this patch enables the lookup for the configured domains as well. Related to https://fedorahosted.org/sssd/ticket/2481 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/util.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/util.h b/src/util/util.h
index ffc8a87ea..7c335b9a2 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -574,8 +574,7 @@ errno_t sssd_domain_init(TALLOC_CTX *mem_ctx,
#define IS_SUBDOMAIN(dom) ((dom)->parent != NULL)
-/* Currently views are only supported for subdomains */
-#define DOM_HAS_VIEWS(dom) ((dom)->has_views && IS_SUBDOMAIN(dom))
+#define DOM_HAS_VIEWS(dom) ((dom)->has_views)
errno_t sss_write_domain_mappings(struct sss_domain_info *domain);