Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix cleanup logic in dn_to_dnsname() | Martin Nagy | 2009-08-04 | 1 | -1/+3 |
| | |||||
* | Add FOR_EACH style macros | Martin Nagy | 2009-08-04 | 1 | -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 record | Martin Nagy | 2009-08-04 | 1 | -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 Nagy | 2009-08-04 | 1 | -6/+4 |
| | |||||
* | Add idnsUpdatePolicy to the idnsZone object class | Martin Nagy | 2009-08-04 | 1 | -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 Nagy | 2009-08-04 | 1 | -2/+1 |
| | |||||
* | Improve addition operation by using ldap_add_ext_s() | Martin Nagy | 2009-08-04 | 1 | -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 Nagy | 2009-08-04 | 2 | -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 functions | Martin Nagy | 2009-08-04 | 5 | -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 casts | Martin Nagy | 2009-08-04 | 2 | -5/+5 |
| | |||||
* | Don't use IGNORE() and IGNORE_R() macros | Martin Nagy | 2009-08-04 | 1 | -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_rdatatype | Martin Nagy | 2009-08-04 | 3 | -4/+4 |
| | |||||
* | Rename ldap_db_t to ldap_instance_t | Martin Nagy | 2009-08-04 | 9 | -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_t | Martin Nagy | 2009-08-04 | 2 | -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 autoconf | Martin Nagy | 2009-06-02 | 1 | -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 warnings | Martin Nagy | 2009-06-02 | 2 | -1/+3 |
| | | | | | Don't use the -pedantic flags and include forgotten string.h header file needed in zone_manager.c for strcmp(). | ||||
* | More compatibility fixes | Martin Nagy | 2009-06-02 | 4 | -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 Tkac | 2009-06-02 | 1 | -0/+4 |
| | |||||
* | Add basic support to get a tgt autonomously | Simo Sorce | 2009-05-25 | 4 | -0/+225 |
| | | | | | Use mutex to serialize kinit. Reuse existing valid creedentials if any. | ||||
* | Fix caching bug. | Simo Sorce | 2009-05-25 | 1 | -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 TTL | Simo Sorce | 2009-05-25 | 1 | -4/+60 |
| | | | | A bit hackish, but it does the job. | ||||
* | Enable reading TTL for ldap entry | Simo Sorce | 2009-05-25 | 1 | -14/+17 |
| | |||||
* | Re-enable SASL/GSSAPI with fixes to make it work. | Simo Sorce | 2009-05-22 | 1 | -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.c | Martin Nagy | 2009-05-12 | 1 | -5/+0 |
| | |||||
* | Remove -Werror from CFLAGS | Martin Nagy | 2009-04-30 | 1 | -1/+1 |
| | |||||
* | Add a README filev0.1.0-a1 | Martin Nagy | 2009-04-30 | 2 | -0/+145 |
| | |||||
* | Add a sample zone ldif | Martin Nagy | 2009-04-30 | 2 | -1/+62 |
| | |||||
* | Add doc directory and the schema file | Martin Nagy | 2009-04-30 | 4 | -3/+295 |
| | |||||
* | ldap_helper.c: Shut up gcc warnings | Martin Nagy | 2009-04-28 | 1 | -2/+3 |
| | |||||
* | Add -Werror and -O2 to CFLAGS | Martin Nagy | 2009-04-28 | 1 | -1/+1 |
| | |||||
* | Disable building of static libraries | Martin Nagy | 2009-04-28 | 1 | -0/+3 |
| | |||||
* | .gitignore: Add autoconf generated files | Martin Nagy | 2009-04-28 | 1 | -1/+15 |
| | |||||
* | Rename the project to bind-dyndb-ldap. | Martin Nagy | 2009-04-28 | 2 | -5/+5 |
| | | | | Also, rename libdnsldap.so to ldap.so. | ||||
* | Install plugin into $libdir/bind subdirectory and omit SOname version number. | Adam Tkac | 2009-04-27 | 1 | -5/+3 |
| | |||||
* | Logging cleanup. | Martin Nagy | 2009-04-27 | 2 | -6/+2 |
| | |||||
* | Add reconnection logic. | Martin Nagy | 2009-04-27 | 1 | -54/+142 |
| | |||||
* | Make ldap_rdata_to_char_array() static. | Martin Nagy | 2009-04-24 | 2 | -3/+3 |
| | |||||
* | Add update ACL capabilities. | Martin Nagy | 2009-04-24 | 4 | -28/+505 |
| | |||||
* | Fix a nasty va_list bug. | Martin Nagy | 2009-04-24 | 1 | -2/+7 |
| | | | | | We were using the same va_list twice, which caused a nasty segfault inside the C library. | ||||
* | Fix rdata parsing. | Martin Nagy | 2009-04-23 | 5 | -15/+19 |
| | |||||
* | Don't cache empty records for now. | Martin Nagy | 2009-04-23 | 1 | -1/+2 |
| | |||||
* | Change the setting name 'host' to 'uri'. | Martin Nagy | 2009-04-23 | 1 | -8/+8 |
| | |||||
* | Disable SASL for now, it doesn't work properly. | Martin Nagy | 2009-04-23 | 1 | -0/+7 |
| | |||||
* | Remove unneeded log functions. | Martin Nagy | 2009-04-23 | 2 | -24/+9 |
| | |||||
* | Forgotten NULL check. | Martin Nagy | 2009-04-22 | 1 | -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 Nagy | 2009-04-21 | 1 | -1/+1 |
| | |||||
* | Add COPYING file. | Martin Nagy | 2009-04-21 | 1 | -0/+339 |
| | |||||
* | Use dns_dyndb_arguments_t to get pointers. | Martin Nagy | 2009-04-21 | 1 | -3/+9 |
| | |||||
* | Use -version-number instead of -version-info as libtool parameter. | Adam Tkac | 2009-03-30 | 1 | -1/+1 |
| | |||||
* | Some backward compatibility #ifdefs. | Martin Nagy | 2009-03-30 | 1 | -3/+35 |
| |