diff options
author | Simo Sorce <simo@redhat.com> | 2012-07-20 12:36:43 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-08-01 22:24:44 +0200 |
commit | efea50efda58be66638e5d38c8e57fdf9992f204 (patch) | |
tree | d4083a388034417ee130369a9ffcc5c9052028fe /src/db/sysdb.h | |
parent | 87ed72b47859e673b636c85f35b85f1546c7ed3d (diff) | |
download | sssd-efea50efda58be66638e5d38c8e57fdf9992f204.tar.gz sssd-efea50efda58be66638e5d38c8e57fdf9992f204.tar.bz2 sssd-efea50efda58be66638e5d38c8e57fdf9992f204.zip |
Change refreshing of subdomains
This patch keeps a local copy of the subdomains in the ipa subdomains plugin
context.
This has 2 advantages:
1. allows to check if anything changed w/o always hitting the sysdb.
2. later will allows us to dump this information w/o having to retrieve it
again. The timestamp also allows to avoid refreshing too often.
Diffstat (limited to 'src/db/sysdb.h')
-rw-r--r-- | src/db/sysdb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h index 0e2404c7..43ac61c2 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -371,7 +371,8 @@ errno_t sysdb_get_subdomains(TALLOC_CTX *mem_ctx, errno_t sysdb_domain_create(struct sysdb_ctx *sysdb, const char *domain_name); errno_t sysdb_update_subdomains(struct sysdb_ctx *sysdb, - struct sysdb_subdom **subdomains); + int num_subdoms, + struct sysdb_subdom *subdoms); errno_t sysdb_get_subdomain_context(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, |