echo "running defines.sh"
. $SRCDIR/scripts/defines.sh
-if test $BACKLDAP = "ldapno" ; then
+if test $BACKLDAP = "ldapno" ; then
echo "LDAP backend not available, test skipped"
exit 0
-fi
+fi
+
+if test $BACKEND = "ldap" ; then
+ echo "LDAP backend not valid, test skipped"
+ exit 0
+fi
mkdir -p $TESTDIR $DBDIR1 $DBDIR2