summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests/test-ldap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/ldb/tests/test-ldap.sh')
-rwxr-xr-xsource4/lib/ldb/tests/test-ldap.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/source4/lib/ldb/tests/test-ldap.sh b/source4/lib/ldb/tests/test-ldap.sh
index d9fa73b641..592e09f408 100755
--- a/source4/lib/ldb/tests/test-ldap.sh
+++ b/source4/lib/ldb/tests/test-ldap.sh
@@ -24,17 +24,18 @@ for f in $SCHEMA_NEEDED; do
fi
done
-export LDB_URL=`tests/ldapi_url.sh`
-
-PATH=bin:$PATH
-export PATH
-
if [ -z "$LDBDIR" ]; then
- LDBDIR="."
+ LDBDIR=`dirname $0`/..
export LDBDIR
fi
+export LDB_URL=`$LDBDIR/tests/ldapi_url.sh`
+
+PATH=bin:$PATH
+export PATH
+
. $LDBDIR/tests/init_slapd.sh
. $LDBDIR/tests/start_slapd.sh
+export LDB_SPECIALS=0
. $LDBDIR/tests/test-generic.sh