-b "$BASEDN" "(objectClass=*)" 1.1 \
>> $TESTOUT 2>&1
RC=$?
-case $RC in
- 0)
+case $RC,$BACKEND in
+ 4,* | 0,null)
+ ;;
+ 0,*)
echo "Search should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
- 4)
- ;;
*)
echo "Search failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
-b "$BASEDN" -z 2 "(objectClass=*)" 1.1 \
>> $TESTOUT 2>&1
RC=$?
-case $RC in
- 0)
+case $RC,$BACKEND in
+ 4,* | 0,null)
+ ;;
+ 0,*)
echo "Search should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
- 4)
- ;;
*)
echo "Search failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
# exit $RC
#fi
-case $RC in
- 0)
+case $RC,$BACKEND in
+ 0,null)
+ ;;
+ 0,*)
echo "WhoAmI should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
- 51)
+ 51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*)
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
# exit $RC
#fi
-case $RC in
- 0)
+case $RC,$BACKEND in
+ 0,null)
+ ;;
+ 0,*)
echo "WhoAmI should have failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit -1
;;
- 51)
+ 51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*)
# test $KILLSERVERS != no && kill -HUP $KILLPIDS
# exit -1
#fi
-case $RC in
- 6)
+case $RC,$BACKEND in
+ 5,null)
;;
- 51)
+ 6,*)
+ ;;
+ 51,*)
echo "### Hit LDAP_BUSY problem; you may want to re-run the test"
;;
*)