Blame SOURCES/perl-ldap-0.65-Configure-usr-sbin-slapd-for-tests.patch

50c90e
From d35a08a77306210ed95a797d5a6ed1160df84b95 Mon Sep 17 00:00:00 2001
50c90e
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
50c90e
Date: Thu, 4 Apr 2019 17:03:01 +0200
50c90e
Subject: [PATCH] Configure /usr/sbin/slapd for tests
50c90e
MIME-Version: 1.0
50c90e
Content-Type: text/plain; charset=UTF-8
50c90e
Content-Transfer-Encoding: 8bit
50c90e
50c90e
The tests need to know slapd executable file name.
50c90e
50c90e
The tests uses sssvlv overlay without loading its module. That's maybe
50c90e
for statically built openldap. However, we have a dynamically built
50c90e
server and we want to rely on a default module path because it varies
50c90e
among architectures. Thus we just uncomment loading the module.
50c90e
50c90e
Also enable SSL and IPC tests.
50c90e
50c90e
Signed-off-by: Petr Písař <ppisar@redhat.com>
50c90e
---
50c90e
 data/slapd.conf.in | 2 +-
50c90e
 test.cfg           | 4 ++--
50c90e
 2 files changed, 3 insertions(+), 3 deletions(-)
50c90e
50c90e
diff --git a/data/slapd.conf.in b/data/slapd.conf.in
50c90e
index c6c06a3..3c7b6fb 100644
50c90e
--- a/data/slapd.conf.in
50c90e
+++ b/data/slapd.conf.in
50c90e
@@ -11,7 +11,7 @@ include $SLAPD_SCHEMA_DIR/openldap.schema
50c90e
 # get required dynmaic modules
50c90e
 #modulepath     $SLAPD_MODULE_DIR
50c90e
 #moduleload     back_$SLAPD_DB
50c90e
-#moduleload	sssvlv
50c90e
+moduleload	sssvlv
50c90e
 
50c90e
 # PID & args file
50c90e
 pidfile         $TESTDB/slapd.pid
50c90e
diff --git a/test.cfg b/test.cfg
50c90e
index 0f951f6..ea5a50c 100644
50c90e
--- a/test.cfg
50c90e
+++ b/test.cfg
50c90e
@@ -4,12 +4,12 @@
50c90e
 
50c90e
 # Set this to the full path of your LDAP server executable
50c90e
 # (e.g '/usr/sbin/slapd')
50c90e
-$SERVER_EXE = '<path to ldap server executable>';
50c90e
+$SERVER_EXE = '/usr/sbin/slapd';
50c90e
 
50c90e
 # This should be one of
50c90e
 # * openldap[+ssl][+ipc][+sasl]
50c90e
 # options  are appended with '+' signs
50c90e
-$SERVER_TYPE = 'openldap';
50c90e
+$SERVER_TYPE = 'openldap+ssl+ipc';
50c90e
 
50c90e
 # Change this if your host cannot be contacted as localhost
50c90e
 # Some tests may fail if the name does not resolve to an IPv4 and an IPv6 address
50c90e
-- 
50c90e
2.20.1
50c90e