public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: Christine Caulfield <chrissie@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: cluster: master - config: Add reload to LDAP plugin
Date: Tue, 28 Apr 2009 07:43:00 -0000	[thread overview]
Message-ID: <20090428074253.D75DB120353@lists.fedorahosted.org> (raw)

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
  */


                 reply	other threads:[~2009-04-28  7:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090428074253.D75DB120353@lists.fedorahosted.org \
    --to=chrissie@fedoraproject.org \
    --cc=cluster-cvs-relay@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).