From: Arran Cudbard-Bell Date: Sat, 20 May 2023 06:14:41 +0000 (-0400) Subject: Check if LDAP started X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8072916d7ea7113e101c3889b863576a8f83ae3;p=thirdparty%2Ffreeradius-server.git Check if LDAP started --- diff --git a/scripts/ci/ldap-setup.sh b/scripts/ci/ldap-setup.sh index ec3ba2c943f..7862cce8a52 100755 --- a/scripts/ci/ldap-setup.sh +++ b/scripts/ci/ldap-setup.sh @@ -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