summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix cleanup logic in dn_to_dnsname()Martin Nagy2009-08-041-1/+3
|
* Add FOR_EACH style macrosMartin Nagy2009-08-041-0/+15
| | | | | | | | | | | | | | | | | The FOR_EACH() macro will simply traverse the given list. Usage: FOR_EACH(element, list) do_something(element); The FOR_EACH_UNLINK() macro will traverse the list and unlink each element. Useful when destroying a whole list. Usage: FOR_EACH_UNLINK(element, list) { destroy(&element); } END_FOR_EACH_UNLINK(element); All these macros assume that 'link' is used to connect list elements, as used in standard ISC list macros.
* Allow updating of the SOA recordMartin Nagy2009-08-041-11/+49
| | | | | | | | | Since the SOA record is special for us, as we store it in multiple LDAP attributes, it was ignored until now. This is now fixed, but we only allow changes to the numeric attributes: serial, refresh, retry, expire and minimum. Resolves ticket #5
* Cosmetic changes to ldap_rdttl_to_ldapmod()Martin Nagy2009-08-041-6/+4
|
* Add idnsUpdatePolicy to the idnsZone object classMartin Nagy2009-08-041-0/+1
| | | | | The idnsUpdatePolicy attribute was in the schema, but not in the zone object class.
* Fix memory leak in ldap_rdttl_to_ldapmod()Martin Nagy2009-08-041-2/+1
|
* Improve addition operation by using ldap_add_ext_s()Martin Nagy2009-08-041-12/+46
| | | | | | | | | Until now, we only used ldap_modify_ext_s() when adding a new record. This is not right, because the label might have not existed before. We solve this now by checking for LDAP_NO_SUCH_OBJECT error and using ldap_add_ext_s() if needed. Partially resolves ticket #1
* Fix a crash bug in findnode()Martin Nagy2009-08-042-12/+7
| | | | | | | | | | 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
* Add annotations to printf-like functionsMartin Nagy2009-08-045-5/+8
| | | | | | The ISC_FORMAT_PRINTF() macro will make sure that gcc checks if these functions are used correctly. Also fix bugs that were found along the way.
* Remove unneeded castsMartin Nagy2009-08-042-5/+5
|
* Don't use IGNORE() and IGNORE_R() macrosMartin Nagy2009-08-041-14/+24
| | | | | We didn't use them at too many places, so using the code directly will make it easier to read.
* Rename ldap_record_to_rdatatype to ldap_attribute_to_rdatatypeMartin Nagy2009-08-043-4/+4
|
* Rename ldap_db_t to ldap_instance_tMartin Nagy2009-08-049-193/+193
| | | | | | | | | 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/
* Rename ldap_instance_t to ldap_connection_tMartin Nagy2009-08-042-172/+172
| | | | | | | | | Equivalent to: s/ldap_instance/ldap_connection s/ldap_inst/ldap_conn This commit starts a series of larger code refactoring effort. More changes and renames will follow.
* Fix the docdir definition for old autoconfMartin Nagy2009-06-021-1/+1
| | | | | | Using the test [ -n "$docdir" ] was actually the opposite of what we really wanted. Also, autoconf 2.59 doesn't know datarootdir, but only datadir, so change that as well.
* Get rid of some compiler warningsMartin Nagy2009-06-022-1/+3
| | | | | Don't use the -pedantic flags and include forgotten string.h header file needed in zone_manager.c for strcmp().
* More compatibility fixesMartin Nagy2009-06-024-0/+73
| | | | | | | 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.
* Define docdir if autoconf (older versions, 2.59, for example) doesn't define it.Adam Tkac2009-06-021-0/+4
|
* Add basic support to get a tgt autonomouslySimo Sorce2009-05-254-0/+225
| | | | | Use mutex to serialize kinit. Reuse existing valid creedentials if any.
* 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).
* Let DNS Updates set the TTLSimo Sorce2009-05-251-4/+60
| | | | A bit hackish, but it does the job.
* Enable reading TTL for ldap entrySimo Sorce2009-05-251-14/+17
|
* Re-enable SASL/GSSAPI with fixes to make it work.Simo Sorce2009-05-221-11/+18
| | | | | | Still requires a manual kinit as the named user. also requires to set the sasl user in named.conf ex: arg "sasl_user DNS/ipaserver.example.com";
* Remove forgotten garbage from log.cMartin Nagy2009-05-121-5/+0
|
* Remove -Werror from CFLAGSMartin Nagy2009-04-301-1/+1
|
* Add a README filev0.1.0-a1Martin Nagy2009-04-302-0/+145
|
* Add a sample zone ldifMartin Nagy2009-04-302-1/+62
|
* Add doc directory and the schema fileMartin Nagy2009-04-304-3/+295
|
* ldap_helper.c: Shut up gcc warningsMartin Nagy2009-04-281-2/+3
|
* Add -Werror and -O2 to CFLAGSMartin Nagy2009-04-281-1/+1
|
* Disable building of static librariesMartin Nagy2009-04-281-0/+3
|
* .gitignore: Add autoconf generated filesMartin Nagy2009-04-281-1/+15
|
* Rename the project to bind-dyndb-ldap.Martin Nagy2009-04-282-5/+5
| | | | Also, rename libdnsldap.so to ldap.so.
* Install plugin into $libdir/bind subdirectory and omit SOname version number.Adam Tkac2009-04-271-5/+3
|
* Logging cleanup.Martin Nagy2009-04-272-6/+2
|
* Add reconnection logic.Martin Nagy2009-04-271-54/+142
|
* Make ldap_rdata_to_char_array() static.Martin Nagy2009-04-242-3/+3
|
* Add update ACL capabilities.Martin Nagy2009-04-244-28/+505
|
* Fix a nasty va_list bug.Martin Nagy2009-04-241-2/+7
| | | | | We were using the same va_list twice, which caused a nasty segfault inside the C library.
* Fix rdata parsing.Martin Nagy2009-04-235-15/+19
|
* Don't cache empty records for now.Martin Nagy2009-04-231-1/+2
|
* Change the setting name 'host' to 'uri'.Martin Nagy2009-04-231-8/+8
|
* Disable SASL for now, it doesn't work properly.Martin Nagy2009-04-231-0/+7
|
* Remove unneeded log functions.Martin Nagy2009-04-232-24/+9
|
* 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.
* Add my email address for bug reports.Martin Nagy2009-04-211-1/+1
|
* Add COPYING file.Martin Nagy2009-04-211-0/+339
|
* Use dns_dyndb_arguments_t to get pointers.Martin Nagy2009-04-211-3/+9
|
* Use -version-number instead of -version-info as libtool parameter.Adam Tkac2009-03-301-1/+1
|
* Some backward compatibility #ifdefs.Martin Nagy2009-03-301-3/+35
|