# $OpenLDAP$
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
##
-## Copyright 1998-2015 The OpenLDAP Foundation.
+## Copyright 1998-2017 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
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