dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0102-Enable-views-for-all-domains.patch

905b4d
From 0271a86e2c1efd248b3c8df14178d0d401f92d08 Mon Sep 17 00:00:00 2001
905b4d
From: Sumit Bose <sbose@redhat.com>
905b4d
Date: Fri, 7 Nov 2014 21:36:12 +0100
905b4d
Subject: [PATCH 102/104] Enable views for all domains
905b4d
905b4d
Currently views and overrides were only available for sub-domains, this
905b4d
patch enables the lookup for the configured domains as well.
905b4d
905b4d
Related to https://fedorahosted.org/sssd/ticket/2481
905b4d
905b4d
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
905b4d
---
905b4d
 src/util/util.h | 3 +--
905b4d
 1 file changed, 1 insertion(+), 2 deletions(-)
905b4d
905b4d
diff --git a/src/util/util.h b/src/util/util.h
905b4d
index ffc8a87eafa4c4b8271d195c7d27fd10f5aa3568..7c335b9a2ac2599304731082845fd382dc62465f 100644
905b4d
--- a/src/util/util.h
905b4d
+++ b/src/util/util.h
905b4d
@@ -574,8 +574,7 @@ errno_t sssd_domain_init(TALLOC_CTX *mem_ctx,
905b4d
 
905b4d
 #define IS_SUBDOMAIN(dom) ((dom)->parent != NULL)
905b4d
 
905b4d
-/* Currently views are only supported for subdomains */
905b4d
-#define DOM_HAS_VIEWS(dom) ((dom)->has_views && IS_SUBDOMAIN(dom))
905b4d
+#define DOM_HAS_VIEWS(dom) ((dom)->has_views)
905b4d
 
905b4d
 errno_t sss_write_domain_mappings(struct sss_domain_info *domain);
905b4d
 
905b4d
-- 
905b4d
1.9.3
905b4d