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