summaryrefslogtreecommitdiffstats
path: root/src/ldap_driver.c
Commit message (Collapse)AuthorAgeFilesLines
* Periodically refresh zone settingsMartin Nagy2009-08-041-28/+2
| | | | | | | | | | | | | | 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.
* Fix a crash bug in findnode()Martin Nagy2009-08-041-12/+5
| | | | | | | | | | If the create argument was set to ISC_TRUE and nothing was found by cached_ldap_rdatalist_get(), the rdatalist variable was left uninitialized. This later caused crash in ldapdb_rdatalist_findrdatatype(), when trying to access memory that rdatalist pointed to. Resolves ticket #18
* Rename ldap_db_t to ldap_instance_tMartin Nagy2009-08-041-11/+11
| | | | | | | | | 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/
* More compatibility fixesMartin Nagy2009-06-021-0/+1
| | | | | | | This will now compile and work fairly well on a RHEL5 system with the newest BIND (9.3.6-2.P1, some stuff is back-ported here). We added a compat.h header file which contains a replacement for two functions. We also did some ifdef-ing in acl.c.
* Fix caching bug.Simo Sorce2009-05-251-0/+1
| | | | | | | We failed to delete the cache after a remove operation. This made a DNS Update against a cached entry fail (we would remove the attributes from ldap but never readd them back if they were unchanged).
* Fix rdata parsing.Martin Nagy2009-04-231-2/+4
|
* Remove unneeded log functions.Martin Nagy2009-04-231-21/+8
|
* Forgotten NULL check.Martin Nagy2009-04-221-1/+4
| | | | | | Only unregister the implementation if it was registered by us. This prevents errors if we are using the same DB implementation multiple times.
* Use dns_dyndb_arguments_t to get pointers.Martin Nagy2009-04-211-3/+9
|
* Some backward compatibility #ifdefs.Martin Nagy2009-03-301-3/+35
|
* Prepare the tree for conversion to autoconf.Martin Nagy2009-03-301-0/+1076
All source files are now moved to src/ and the old Makefile is removed.