|
|
e4ff3b |
From e006994d83af9dcb7813a18253cf4e5beacee043 Mon Sep 17 00:00:00 2001
|
|
|
e4ff3b |
From: Ryan Tandy <ryan@nardis.ca>
|
|
|
e4ff3b |
Date: Sun, 26 Apr 2020 11:40:23 -0700
|
|
|
e4ff3b |
Subject: [PATCH] Fix slaptest in test077
|
|
|
e4ff3b |
|
|
|
e4ff3b |
The libtool wrapper scripts lose argv[0] when exec'ing the real binary.
|
|
|
e4ff3b |
|
|
|
e4ff3b |
In the CI Docker container, where the build runs as root, this was
|
|
|
e4ff3b |
actually starting a real slapd on the default port.
|
|
|
e4ff3b |
|
|
|
e4ff3b |
Outside Docker, running as a non-root user, this slapd would just fail
|
|
|
e4ff3b |
to start, and wouldn't convert the config either.
|
|
|
e4ff3b |
|
|
|
e4ff3b |
Using "slapd -Tt" fixes the issue but also prints a warning from
|
|
|
e4ff3b |
slaptest since the database hasn't been initialized yet.
|
|
|
e4ff3b |
|
|
|
e4ff3b |
Dynamic config isn't actually used in this test script, so let's just
|
|
|
e4ff3b |
run slapd off the config file directly.
|
|
|
e4ff3b |
---
|
|
|
e4ff3b |
tests/scripts/test077-sasl-gssapi | 3 ---
|
|
|
e4ff3b |
1 file changed, 3 deletions(-)
|
|
|
e4ff3b |
|
|
|
e4ff3b |
diff --git a/tests/scripts/test077-sasl-gssapi b/tests/scripts/test077-sasl-gssapi
|
|
|
e4ff3b |
index 64abe16fe..bde9006ca 100755
|
|
|
e4ff3b |
--- a/tests/scripts/test077-sasl-gssapi
|
|
|
e4ff3b |
+++ b/tests/scripts/test077-sasl-gssapi
|
|
|
e4ff3b |
@@ -24,9 +24,6 @@ fi
|
|
|
e4ff3b |
mkdir -p $TESTDIR $DBDIR1
|
|
|
e4ff3b |
cp -r $DATADIR/tls $TESTDIR
|
|
|
e4ff3b |
|
|
|
e4ff3b |
-cd $TESTWD
|
|
|
e4ff3b |
-
|
|
|
e4ff3b |
-
|
|
|
e4ff3b |
echo "Starting KDC for SASL/GSSAPI tests..."
|
|
|
e4ff3b |
. $SRCDIR/scripts/setup_kdc.sh
|
|
|
e4ff3b |
|
|
|
e4ff3b |
--
|
|
|
e4ff3b |
2.29.2
|
|
|
e4ff3b |
|