summaryrefslogtreecommitdiffstats
path: root/src/zone_manager.c
Commit message (Collapse)AuthorAgeFilesLines
* Change license: GPLv2 or laterMartin Nagy2009-08-041-2/+3
| | | | | Allow publishing the code under GPL version 2 or later. Before that, we only allowed to use version 2.
* Gracefully fail if no zones are found in the initial lookupMartin Nagy2009-08-041-1/+8
| | | | | | | | If the initial search fails to find any zones, destroy the database instance, but return ISC_R_SUCCESS to BIND, since this is not technically a fault because of which BIND should abort. We do this because there is no point in refreshing zones if there are not any and it is not possible to add them later.
* Periodically refresh zone settingsMartin Nagy2009-08-041-29/+58
| | | | | | | | | | | | | | 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.
* Rename ldap_db_t to ldap_instance_tMartin Nagy2009-08-041-10/+10
| | | | | | | | | Equivalent to: s/new_ldap_db/new_ldap_instance/ s/destroy_ldap_db/destroy_ldap_instance/ s/manager_get_ldap_db_and_cache/manager_get_ldap_instance_and_cache/ s/ldap_db_t/ldap_instance_t/ s/ldap_db/ldap_db/
* Get rid of some compiler warningsMartin Nagy2009-06-021-0/+2
| | | | | Don't use the -pedantic flags and include forgotten string.h header file needed in zone_manager.c for strcmp().
* Prepare the tree for conversion to autoconf.Martin Nagy2009-03-301-0/+209
All source files are now moved to src/ and the old Makefile is removed.