diff options
author | Martin Nagy <mnagy@redhat.com> | 2009-08-03 09:55:14 +0200 |
---|---|---|
committer | Martin Nagy <mnagy@redhat.com> | 2009-08-04 16:50:54 +0200 |
commit | fdd7b1de1f1a82ebfc8483fe5264717b502243a2 (patch) | |
tree | 44058fd841c7984eb0584b65fd569f6749ab40c0 /src/zone_manager.h | |
parent | 2d1ffcf060eb873a76d462725195dbac6f114c1f (diff) | |
download | ldap_driver-fdd7b1de1f1a82ebfc8483fe5264717b502243a2.tar.gz ldap_driver-fdd7b1de1f1a82ebfc8483fe5264717b502243a2.tar.xz ldap_driver-fdd7b1de1f1a82ebfc8483fe5264717b502243a2.zip |
Periodically refresh zone settings
The original intent was to add and remove zones periodically, based on
changes in the LDAP database. It seems, however, that this is not
possible with the way BIND views are working. Each view can have zones
added during the configuration phase, but not after that. Luckily, we
can at least change their SSU table without the need to reload named.
This commit also has some changes to the function interfaces and makes
the whole thing a lot simpler. Creation of the ldap instances and cache
instances is now left on the zone manager. Additionally, we now put view
and zonemgr pointers right into into the ldap instance. This makes the
API for refresh_zones_from_ldap() and create_zone() much more simpler.
Diffstat (limited to 'src/zone_manager.h')
-rw-r--r-- | src/zone_manager.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/zone_manager.h b/src/zone_manager.h index b7d15bf..b685f76 100644 --- a/src/zone_manager.h +++ b/src/zone_manager.h @@ -30,11 +30,12 @@ typedef struct db_instance db_instance_t; void destroy_manager(void); isc_result_t -manager_add_db_instance(isc_mem_t *mctx, const char *name, ldap_instance_t *ldap_inst, - ldap_cache_t *ldap_cache, dns_zonemgr_t *zmgr); +manager_create_db_instance(isc_mem_t *mctx, const char *name, + const char * const *argv, + dns_dyndb_arguments_t *dyndb_args); isc_result_t manager_get_ldap_instance_and_cache(const char *name, ldap_instance_t **ldap_inst, - ldap_cache_t **ldap_cache); + ldap_cache_t **ldap_cache); #endif /* !_LD_ZONE_MANAGER_H_ */ |