X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Ftest015-xsearch;h=0adb6ebbdd17ef398aa61acb213316488914a102;hb=737562a20b3d8df1ecffec610f285f583b75f5c9;hp=e9b3d78cd6b35a7619b44dbb05acdc2e243f3d9f;hpb=70cfbf587a5cac82394a541e1acd7cdd1ae0ec58;p=openldap diff --git a/tests/scripts/test015-xsearch b/tests/scripts/test015-xsearch index e9b3d78cd6..0adb6ebbdd 100755 --- a/tests/scripts/test015-xsearch +++ b/tests/scripts/test015-xsearch @@ -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 @@ -161,18 +161,18 @@ if test $RC != 0 ; then exit $RC fi -#FILTER="(:rdnMatch:=cn=All Staff)" -#echo " f=$FILTER ..." -#echo "# f=$FILTER ..." >> $SEARCHOUT -#$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ -# "$FILTER" >> $SEARCHOUT 2>&1 -# -#RC=$? -#if test $RC != 0 ; then -# echo "ldapsearch failed ($RC)!" -# test $KILLSERVERS != no && kill -HUP $KILLPIDS -# exit $RC -#fi +FILTER="(name:dn:=whatever)" +echo " f=$FILTER ..." +echo "# f=$FILTER ..." >> $SEARCHOUT +$LDAPSEARCH -S "" -b "" -s base -h $LOCALHOST -p $PORT1 \ + "$FILTER" >> $SEARCHOUT 2>&1 + +RC=$? +if test $RC != 0 ; then + echo "ldapsearch failed ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit $RC +fi echo "Testing values return filter searching:" echo "# Testing values return filter searching:" >> $SEARCHOUT