From f2c083169760db02e267e2ca673e09ff2493931f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 1 Sep 2006 01:51:54 +0000 Subject: r17978: make the ldap backend test for ldb work both with and without modules (so it works on both redhat and debian, for example) (This used to be commit 71264bb78558ada7539ef59048eb38887579c1d1) --- source4/lib/ldb/tests/init_slapd.sh | 18 ++++++++++++++++++ source4/lib/ldb/tests/slapd.conf | 3 +-- 2 files changed, 19 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/lib/ldb/tests/init_slapd.sh b/source4/lib/ldb/tests/init_slapd.sh index be06ac0d74..8ebfed9c66 100755 --- a/source4/lib/ldb/tests/init_slapd.sh +++ b/source4/lib/ldb/tests/init_slapd.sh @@ -19,5 +19,23 @@ fi # we don't consider a slapadd failure as a test suite failure, as it # has nothing to do with ldb + +MODCONF=tests/tmp/modules.conf +rm -f $MODCONF +touch $MODCONF || exit 1 + +if ! slaptest -u -f $LDBDIR/tests/slapd.conf > /dev/null 2>&1; then +echo "enabling sladp modules" +cat > $MODCONF <