# $OpenLDAP$
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
##
-## Copyright 1998-2010 The OpenLDAP Foundation.
+## Copyright 1998-2011 The OpenLDAP Foundation.
## All rights reserved.
##
## Redistribution and use in source and binary forms, with or without
;;
esac
-case $BACKEND in bdb | hdb)
+if test $INDEXDB = indexdb ; then
echo "Testing higher than unchecked limit requested for unchecked limited ID..."
$LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
exit $RC
;;
esac
-;;
-*) echo "Skipping test for unchecked limit with $BACKEND backend." ;;
-esac
+else
+ echo "Skipping test for unchecked limit with $BACKEND backend."
+fi
echo "Testing no limits requested for limited regex..."
$LDAPRSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 -w secret \
;;
esac
-case $BACKEND in
- bdb | hdb)
- # only bdb|hdb currently supports pagedResults control
- ;;
- *)
+if test $MAINDB != maindb ; then
+ # only bdb|hdb|mdb currently supports pagedResults control
test $KILLSERVERS != no && kill -HUP $KILLPIDS
echo ">>>>> Test succeeded"
exit 0
- ;;
-esac
+fi
if test x"$SLAPD_PAGE_SIZE" != x ; then
PAGESIZE="$SLAPD_PAGE_SIZE"