public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE3 - cman: Fix LDAP environment variable names in init script
@ 2009-04-01 10:20 Christine Caulfield
0 siblings, 0 replies; only message in thread
From: Christine Caulfield @ 2009-04-01 10:20 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=ce494f9aa266fc82c229572026f083345fcdc237
Commit: ce494f9aa266fc82c229572026f083345fcdc237
Parent: ad1bef3ca6c537d718c91c7b46ad5f7c021028f4
Author: Christine Caulfield <ccaulfie@redhat.com>
AuthorDate: Wed Apr 1 11:19:16 2009 +0100
Committer: Christine Caulfield <ccaulfie@redhat.com>
CommitterDate: Wed Apr 1 11:19:16 2009 +0100
cman: Fix LDAP environment variable names in init script
Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
---
cman/init.d/cman.in | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/cman/init.d/cman.in b/cman/init.d/cman.in
index d46c98c..9206a92 100644
--- a/cman/init.d/cman.in
+++ b/cman/init.d/cman.in
@@ -131,7 +131,8 @@ fi
# xmlconfig - read directly from cluster.conf and use ricci as default
# config propagation method. (default)
# ldapconfig - read configuration from an ldap server.
-# Requires: LDAP_URL or/and LDAP_BASEDN envvar to be set.
+# Requires: COROSYNC_LDAP_URL or/and COROSYNC_LDAP_BASEDN
+# envvar to be set.
# LDAP_BINDDN and LDAP_BINDPWD have to be either both set
# or both unset.
# corosync_parser - use internal corosync config file parser.
@@ -241,24 +242,24 @@ cman_checkconfig()
{
case "$CONFIG_LOADER" in
ldapconfig)
- if [ -n "$LDAP_URL" ] || [ -n "$LDAP_BASEDN" ]; then
- if [ -n "$LDAP_BINDDN" ]; then
+ if [ -n "$COROSYNC_LDAP_URL" ] || [ -n "$COROSYNC_LDAP_BASEDN" ]; then
+ if [ -n "$COROSYNC_LDAP_BINDDN" ]; then
if [ -z "$LDAP_BINDPWD" ]; then
- errmsg="ldadconfig has been selected \
+ errmsg="ldapconfig has been selected \
but LDAP_BINDPWD is not set"
return 1
fi
fi
if [ -n "$LDAP_BINDPWD" ]; then
- if [ -z "$LDAP_BINDDN" ]; then
- errmsg="ldadconfig has been selected \
+ if [ -z "$COROSYNC_LDAP_BINDDN" ]; then
+ errmsg="ldapconfig has been selected \
but LDAP_BINDDN is not set"
return 1
fi
fi
else
- errmsg="ldadconfig has been selected but neither \
- LDAP_URL or LDAP_BASEDN have been set"
+ errmsg="ldapconfig has been selected but neither \
+ COROSYNC_LDAP_URL or COROSYNC_LDAP_BASEDN have been set"
return 1
fi
;;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-01 10:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-01 10:20 cluster: STABLE3 - cman: Fix LDAP environment variable names in init script Christine Caulfield
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).