summaryrefslogtreecommitdiffstats
path: root/src/confdb/confdb.h
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2014-09-24 13:01:20 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-10-20 16:14:10 +0200
commite7cc651468ab8b1462a6a39e712e7b8d36a3a166 (patch)
treeecba95833e101ca63701f60d296d89f58ca93bd0 /src/confdb/confdb.h
parentf834f712548db811695ea0fd6d6b31d3bd03e2a3 (diff)
downloadsssd-e7cc651468ab8b1462a6a39e712e7b8d36a3a166.tar.gz
sssd-e7cc651468ab8b1462a6a39e712e7b8d36a3a166.tar.xz
sssd-e7cc651468ab8b1462a6a39e712e7b8d36a3a166.zip
confdb: add has_views and view_name to sss_domain_info
To let the responders know which view is applied and to make view handling more efficiently especially when no view is applied/available two new member are added to the sss_domain_info struct. view_name is the name of the view if available. has_views is only true if the client has a specific view applied, i.e. it is false for the case when there are no views at all (e.g. plain LDAP provider) or the client has the FreeIPA default view. This allows the responders to easily bypass any view related code. Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/confdb/confdb.h')
-rw-r--r--src/confdb/confdb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/confdb/confdb.h b/src/confdb/confdb.h
index 720b7dc1c..34d461065 100644
--- a/src/confdb/confdb.h
+++ b/src/confdb/confdb.h
@@ -255,6 +255,9 @@ struct sss_domain_info {
char *forest;
struct timeval subdomains_last_checked;
+ bool has_views;
+ char *view_name;
+
struct sss_domain_info *prev;
struct sss_domain_info *next;