This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cluster: master - config: Add reload to LDAP plugin


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=6a30c6577c6c8f1b6e1f46a50b360a77ac6091a4
Commit:        6a30c6577c6c8f1b6e1f46a50b360a77ac6091a4
Parent:        262c8382da240324c0f95d32a81e5efe03f70393
Author:        Christine Caulfield <ccaulfie@redhat.com>
AuthorDate:    Tue Apr 28 08:41:01 2009 +0100
Committer:     Christine Caulfield <ccaulfie@redhat.com>
CommitterDate: Tue Apr 28 08:42:20 2009 +0100

config: Add reload to LDAP plugin

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
---
 config/plugins/ldap/configldap.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/config/plugins/ldap/configldap.c b/config/plugins/ldap/configldap.c
index c739e9a..704763f 100644
--- a/config/plugins/ldap/configldap.c
+++ b/config/plugins/ldap/configldap.c
@@ -20,6 +20,7 @@
 #define DEFAULT_LDAP_BASEDN "dc=chrissie,dc=net"
 
 static int ldap_readconfig(struct objdb_iface_ver0 *objdb, const char **error_string);
+static int ldap_reloadconfig(struct objdb_iface_ver0 *objdb, int flush, const char **error_string);
 static int init_config(struct objdb_iface_ver0 *objdb);
 static char error_reason[1024];
 static const char *ldap_url = DEFAULT_LDAP_URL;
@@ -30,7 +31,8 @@ static const char *ldap_basedn = DEFAULT_LDAP_BASEDN;
  */
 
 static struct config_iface_ver0 ldapconfig_iface_ver0 = {
-	.config_readconfig        = ldap_readconfig
+	.config_readconfig        = ldap_readconfig,
+	.config_reloadconfig        = ldap_reloadconfig
 };
 
 static struct lcr_iface ifaces_ver0[2] = {
@@ -72,6 +74,11 @@ static int ldap_readconfig(struct objdb_iface_ver0 *objdb, const char **error_st
 	return ret;
 }
 
+static int ldap_reloadconfig(struct objdb_iface_ver0 *objdb, int flush, const char **error_string)
+{
+	return ldap_readconfig(objdb, error_string);
+}
+
 /*
  * Convert hyphens to underscores in all attribute names
  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]