From b50baee36c9ba9e1dd3f6b9c1356482aecd08128 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 1 Jun 2015 21:58:15 +0200 Subject: 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 --- src/confdb/confdb.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/confdb') 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; }; /** -- cgit