summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2014-09-25 09:36:51 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-10-20 16:15:00 +0200
commitd70023a7fa95c8c12683de965a76ec38a6234ae5 (patch)
treebb111329998683b31b650023292e6063a4c89b4e /src/util
parent9f734d4c122e37cc3080974342ed9586d05d5f83 (diff)
downloadsssd-d70023a7fa95c8c12683de965a76ec38a6234ae5.tar.gz
sssd-d70023a7fa95c8c12683de965a76ec38a6234ae5.tar.xz
sssd-d70023a7fa95c8c12683de965a76ec38a6234ae5.zip
sysdb: add overide lookup calls
sysdb_search_user_override_by_name() and sysdb_search_group_override_by_name() search for overrides in the given view. sysdb_add_overrides_to_object() adds the data from the override object to the original object and makes them available for further processing. Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h
index 2b9f49979..0ac9b0104 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -546,6 +546,9 @@ 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))
+
errno_t sss_write_domain_mappings(struct sss_domain_info *domain);
errno_t get_dom_names(TALLOC_CTX *mem_ctx,