diff options
author | Martin Nagy <mnagy@redhat.com> | 2009-04-23 06:55:56 +0200 |
---|---|---|
committer | Martin Nagy <mnagy@redhat.com> | 2009-04-23 06:55:56 +0200 |
commit | 488a93f6e73879c91e50cecc0bf5056baf4158d4 (patch) | |
tree | 02e9a5409aaa9f2fa2881eeb99c8bc2b52564c71 | |
parent | 86d9a8a83aa6e8c43fb2cd6d4755332ab64f0967 (diff) | |
download | ldap_driver_testing-488a93f6e73879c91e50cecc0bf5056baf4158d4.tar.gz ldap_driver_testing-488a93f6e73879c91e50cecc0bf5056baf4158d4.tar.xz ldap_driver_testing-488a93f6e73879c91e50cecc0bf5056baf4158d4.zip |
Remove unneeded log functions.
-rw-r--r-- | src/ldap_convert.c | 4 | ||||
-rw-r--r-- | src/ldap_driver.c | 29 |
2 files changed, 9 insertions, 24 deletions
diff --git a/src/ldap_convert.c b/src/ldap_convert.c index 24da32f..8ce5e04 100644 --- a/src/ldap_convert.c +++ b/src/ldap_convert.c @@ -136,7 +136,6 @@ cleanup: if (exploded_rdn != NULL) ldap_value_free(exploded_rdn); - log_error("converted: %s", str_buf(target)); return result; } @@ -251,9 +250,8 @@ ldap_record_to_rdatatype(const char *ldap_record, dns_rdatatype_t *rdtype) region.base = dns_records[i]; region.length = strlen(region.base); result = dns_rdatatype_fromtext(rdtype, (isc_textregion_t *)®ion); - if (result != ISC_R_SUCCESS) { + if (result != ISC_R_SUCCESS) log_error("dns_rdatatype_fromtext() failed"); - } return result; } diff --git a/src/ldap_driver.c b/src/ldap_driver.c index 5b01604..faa0b95 100644 --- a/src/ldap_driver.c +++ b/src/ldap_driver.c @@ -632,7 +632,7 @@ addrdataset(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version, * TODO: support it. When supported handle * DNS_DBADD_EXACTTTL option well. */ - log_error("Multiple TTLs for one name are not " + log_error("multiple TTLs for one name are not " "supported"); result = ISC_R_NOTIMPLEMENTED; goto cleanup; @@ -1039,13 +1039,6 @@ dynamic_driver_init(isc_mem_t *mctx, const char *name, const char * const *argv, view = dns_dyndb_get_view(dyndb_args); zmgr = dns_dyndb_get_zonemgr(dyndb_args); - /* Test argv. */ - int i = 0; - while (argv[i] != NULL) { - log_debug(2, "Arg: %s", argv[i]); - i++; - } - /* * We need to discover what rdataset methods does * dns_rdatalist_tordataset use. We then make a copy for ourselves @@ -1075,22 +1068,10 @@ dynamic_driver_init(isc_mem_t *mctx, const char *name, const char * const *argv, CHECK(manager_add_db_instance(mctx, name, ldap_db, ldap_cache, zmgr)); /* - * XXX now fetch all zones and initialize ldap zone manager + * TODO: now fetch all zones and initialize ldap zone manager * (periodically check for new zones) * - manager has to share server zonemgr (ns_g_server->zonemgr) * - * XXX manager has to this this for each zone: - * - dns_zone_create - * - dns_zone_setorigin - * - dns_zone_setview - * - dns_zone_setacache (probably not needed) - * - dns_zone_setclass - * - dns_zone_settype - * - dns_zone_setdbtype (note: pass all connection arguments etc here - - * will be used by ldapdb_create) - * - continue as in bin/server.c - ns_zone_configure() - * - dns_zonemgr_managezone - * * zone has to be bind-ed to specified view: * - dns_view_findzone (check if zone already exists) * - dns_view_addzone @@ -1113,5 +1094,11 @@ dynamic_driver_destroy(void) /* Only unregister the implementation if it was registered by us. */ if (ldapdb_imp != NULL) dns_db_unregister(&ldapdb_imp); + /* + * XXX: This is a work-around a bug in dns_db_unregister(). + * Remove this line after it has been fixed. + */ + ldapdb_imp = NULL; + destroy_manager(); } |