]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Check if LDAP started
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 20 May 2023 06:14:41 +0000 (02:14 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 20 May 2023 06:14:41 +0000 (02:14 -0400)
scripts/ci/ldap-setup.sh

index ec3ba2c943f95656580bfe6dac067afb87c09c7c..7862cce8a522434ececd6a6aab57301d33ef9edb 100755 (executable)
@@ -29,7 +29,10 @@ else
 fi
 
 # Start slapd
-slapd -h "ldap://127.0.0.1:3890/" -f scripts/ci/ldap/slapd.conf &
+if ! slapd -d any -h "ldap://127.0.0.1:3890/" -f scripts/ci/ldap/slapd.conf 2>&1 > /tmp/slapd.log &; then
+    cat /tmp/slapd.log
+    exit 1
+fi
 
 # Wait for LDAP to start
 sleep 1