cluster: STABLE3 - cman: Fix LDAP environment variable names in init script

Christine Caulfield chrissie@fedoraproject.org
Wed Apr 1 10:20:00 GMT 2009


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
 	;;



More information about the Cluster-cvs mailing list