X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Ftest009-referral;h=e9781843a0cf1de1ea3e58150dba76f24aa64391;hb=a88f0c5461452337e6d0e8bb5d791a9a21cab331;hp=d20edc21d2c2d8d0dfbb8bfebab9e333bac107fe;hpb=3c598e89fb34a892d369a138daa8c3314294493c;p=openldap diff --git a/tests/scripts/test009-referral b/tests/scripts/test009-referral index d20edc21d2..e9781843a0 100755 --- a/tests/scripts/test009-referral +++ b/tests/scripts/test009-referral @@ -2,7 +2,7 @@ # $OpenLDAP$ ## This work is part of OpenLDAP Software . ## -## Copyright 1998-2004 The OpenLDAP Foundation. +## Copyright 1998-2005 The OpenLDAP Foundation. ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without @@ -92,6 +92,16 @@ if test $RC != 0 ; then exit $RC fi +echo "Testing approximate searching..." +$LDAPSEARCH -C -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \ + '(sn=jENSEN)' name >> $SEARCHOUT 2>&1 +RC=$? +if test $RC != 0 ; then + echo "ldapsearch failed ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit $RC +fi + echo "Testing OR searching..." $LDAPSEARCH -C -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT2 \ '(|(objectclass=groupofnames)(objectClass=groupofuniquenames)(sn=jones))' >> $SEARCHOUT 2>&1