summaryrefslogtreecommitdiffstats
path: root/src/confdb
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-06-01 21:58:15 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-06-14 21:44:39 +0200
commitb50baee36c9ba9e1dd3f6b9c1356482aecd08128 (patch)
tree461ee6337f76e02658bdda6fde5e73099188e681 /src/confdb
parent9af86b9c936d07cff9d0c2054acde908749ea522 (diff)
downloadsssd-b50baee36c9ba9e1dd3f6b9c1356482aecd08128.tar.gz
sssd-b50baee36c9ba9e1dd3f6b9c1356482aecd08128.tar.xz
sssd-b50baee36c9ba9e1dd3f6b9c1356482aecd08128.zip
SYSDB: Add a forest root attribute to sss_domain_info
Instead of complex forest root search methods, establish forest root during subdomain list update. The subdomain code can then just use the forest_root pointer. Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/confdb')
-rw-r--r--src/confdb/confdb.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/confdb/confdb.h b/src/confdb/confdb.h
index 25b8fe8d3..801a13fc2 100644
--- a/src/confdb/confdb.h
+++ b/src/confdb/confdb.h
@@ -259,7 +259,6 @@ struct sss_domain_info {
char *realm;
char *flat_name;
char *domain_id;
- char *forest;
uint32_t trust_direction;
struct timeval subdomains_last_checked;
@@ -271,6 +270,12 @@ struct sss_domain_info {
bool disabled;
char **sd_inherit;
+
+ /* Do not use the forest pointer directly in new code, but rather the
+ * forest_root pointer. sss_domain_info will be more opaque in the future
+ */
+ char *forest;
+ struct sss_domain_info *forest_root;
};
/**