summaryrefslogtreecommitdiffstats
path: root/ldap_helper.h
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2009-02-10 18:56:23 +0100
committerMartin Nagy <mnagy@redhat.com>2009-02-12 15:39:48 +0100
commit1167840b16883acdc4ab47b1ef8c69d8ed7a33d8 (patch)
tree6262f4797ed514d2069bbfe71f7410219bd0e1ad /ldap_helper.h
parentc0aff53501ad45dba1425951a8cc2cd3d1697a8d (diff)
downloadldap_driver_testing-1167840b16883acdc4ab47b1ef8c69d8ed7a33d8.tar.gz
ldap_driver_testing-1167840b16883acdc4ab47b1ef8c69d8ed7a33d8.tar.xz
ldap_driver_testing-1167840b16883acdc4ab47b1ef8c69d8ed7a33d8.zip
Add zone manager.
Zone manager will take care of periodical checks for new zones and will add them when they appear. For now, zones are only added at start time, no periodical checks yet.
Diffstat (limited to 'ldap_helper.h')
-rw-r--r--ldap_helper.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/ldap_helper.h b/ldap_helper.h
index 4324fdd..fe2478b 100644
--- a/ldap_helper.h
+++ b/ldap_helper.h
@@ -1,7 +1,7 @@
/* Authors: Martin Nagy <mnagy@redhat.com>
* Adam Tkac <atkac@redhat.com>
*
- * Copyright (C) 2008 Red Hat
+ * Copyright (C) 2008, 2009 Red Hat
* see file 'COPYING' for use and warranty information
*
* This program is free software; you can redistribute it and/or
@@ -19,6 +19,9 @@
*/
#ifndef _LD_LDAP_HELPER_H_
+#define _LD_LDAP_HELPER_H_
+
+#include <isc/util.h>
typedef struct ldap_db ldap_db_t;
typedef struct ldap_instance ldap_instance_t;
@@ -73,9 +76,10 @@ isc_result_t ldapdb_rdatalist_get(isc_mem_t *mctx, dns_name_t *name,
* DNS_R_PARTIALMATCH
*/
-isc_result_t new_ldap_db(isc_mem_t *mctx, ldap_db_t **ldap_dbp,
+isc_result_t new_ldap_db(isc_mem_t *mctx, dns_view_t *view, ldap_db_t **ldap_dbp,
const char * const *argv);
void destroy_ldap_db(ldap_db_t **ldap_db);
-void get_zone_list(ldap_db_t *ldap_db);
+isc_result_t refresh_zones_from_ldap(ldap_db_t *ldap_db, const char *name,
+ dns_zonemgr_t *zmgr);
#endif /* !_LD_LDAP_HELPER_H_ */