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

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