From: Nick Porter Date: Sat, 22 Oct 2022 17:33:49 +0000 (+0100) Subject: Revert "Re-work ldap setup script" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acb80c5f6d0583e6eede9af1a55e798a7b62292b;p=thirdparty%2Ffreeradius-server.git Revert "Re-work ldap setup script" ss is not available on self-hosted runners, and further observation shows this is not the cause of the random failures --- diff --git a/scripts/ci/ldap-setup.sh b/scripts/ci/ldap-setup.sh index c549f130531..ec3ba2c943f 100755 --- a/scripts/ci/ldap-setup.sh +++ b/scripts/ci/ldap-setup.sh @@ -34,9 +34,10 @@ slapd -h "ldap://127.0.0.1:3890/" -f scripts/ci/ldap/slapd.conf & # Wait for LDAP to start sleep 1 +# Add test data count=0 while [ $count -lt 10 ] ; do - if [ `ss -ltnp | grep 3890 | wc -l` -ge 1 ] ; then + if ldapadd -x -H ldap://127.0.0.1:3890/ -D "cn=admin,cn=config" -w secret -f src/tests/salt-test-server/salt/ldap/base.ldif ; then break 2 else count=$((count+1)) @@ -44,9 +45,6 @@ while [ $count -lt 10 ] ; do fi done -# Add test data -ldapadd -x -H ldap://127.0.0.1:3890/ -D "cn=admin,cn=config" -w secret -f src/tests/salt-test-server/salt/ldap/base.ldif - if [ $? -ne 0 ]; then echo "Error configuring server" exit 1