echo "running defines.sh"
 . $SRCDIR/scripts/defines.sh
 
-if test $BACKEND = "ldif" ; then
-        echo "LDIF backend does not support acls, test skipped"
+case $BACKEND in ldif | null)
+       # LDIF lacks ACL support, NULL cannot hold dynamic entries
+        echo "Test does not support $BACKEND backend, test skipped"
         exit 0
-fi
+esac
 
 if test $DDS = ddsno; then 
        echo "Dynamic Directory Services overlay not available, test skipped"
 
        exit 0
 fi 
 
+if test $BACKEND = null; then
+       echo "$BACKEND backend does not support cn=config, test skipped"
+       exit 0
+fi
+
 PRODIR=$TESTDIR/pro
 CONDIR=$TESTDIR/con1
 DBPRO=$PRODIR/db
 
        exit 0
 fi 
 
+if test $BACKEND = null; then
+       echo "$BACKEND backend does not support cn=config, test skipped"
+       exit 0
+fi
+
 MMR=${MMR-4}
 
 if [ $MMR -gt 9 ]; then
 
        exit 0
 fi 
 
+if test $BACKEND = null; then
+       echo "$BACKEND backend does not support cn=config, test skipped"
+       exit 0
+fi
+
 mkdir -p $TESTDIR $DBDIR1 $TESTDIR/confdir
 
 $SLAPPASSWD -g -n >$CONFIGPWF
 
        exit 0
 fi 
 
+if test $BACKEND = null; then
+       echo "$BACKEND backend does not support cn=config, test skipped"
+       exit 0
+fi
+
 PRODDIR=$TESTDIR/prod
 PRO2DIR=$TESTDIR/pro2
 CONSDIR=$TESTDIR/cons
 
        exit 0
 fi 
 
-if test "$BACKEND" = "bdb" ; then
-       echo "Test does not support $BACKEND"
+case $BACKEND in bdb | null)
+       echo "Test does not support $BACKEND, test skipped"
        exit 0
-fi
+esac
 
 mkdir -p $TESTDIR $DBDIR1 $TESTDIR/confdir