Blame SOURCES/bz917681-slapd-heartbeat-updates.patch

aba6ec
diff --git a/heartbeat/slapd b/heartbeat/slapd
aba6ec
index 6661984..ffb40e8 100755
aba6ec
--- a/heartbeat/slapd
aba6ec
+++ b/heartbeat/slapd
aba6ec
@@ -526,10 +526,14 @@ parameters=$OCF_RESKEY_parameters
aba6ec
 pid_file=$OCF_RESKEY_pidfile
aba6ec
 
aba6ec
 if [ -z "$config" ]; then
aba6ec
-  if [ -e "/etc/ldap/slapd.d" ]; then
aba6ec
-    config="/etc/ldap/slapd.d"
aba6ec
-  else
aba6ec
-    config="/etc/ldap/slapd.conf"
aba6ec
+  config_dirname="/etc/ldap"
aba6ec
+  if [ -e "/etc/openldap" ]; then
aba6ec
+    config_dirname="/etc/openldap"
aba6ec
+  fi
aba6ec
+
aba6ec
+  config="$config_dirname/slapd.conf"
aba6ec
+  if [ -e "$config_dirname/slapd.d" ]; then
aba6ec
+    config="$config_dirname/slapd.d"
aba6ec
   fi
aba6ec
 fi
aba6ec