X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tests%2Fscripts%2Ftest015-xsearch;h=afdd5991bccb9052949fb60d9f7152d2156e7892;hb=7acd20965cb8b464169390afe31f63114cabad63;hp=44a33ae46f4da4522f3e9fe5b1e19c1c802c6121;hpb=0e104da454c0f59c6d3195add38c935179de2cb3;p=openldap diff --git a/tests/scripts/test015-xsearch b/tests/scripts/test015-xsearch index 44a33ae46f..afdd5991bc 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-2014 The OpenLDAP Foundation. +## Copyright 1998-2015 The OpenLDAP Foundation. ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without @@ -211,6 +211,19 @@ if test $RC != 0 ; then exit $RC fi +FILTER="(dc=example)" +VRFILTER="((o={*)(dc=*))" +echo " f=$FILTER mv=$VRFILTER ..." +echo "# f=$FILTER mv=$VRFILTER ..." >> $SEARCHOUT +$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ + -E '!mv='"$VRFILTER" "$FILTER" >> $SEARCHOUT 2>&1 +RC=$? +if test $RC != 0 ; then + echo "ldapsearch failed ($RC)!" + test $KILLSERVERS != no && kill -HUP $KILLPIDS + exit $RC +fi + FILTER="(attributeTypes=0.9.2342.19200300.100.1.25)" echo " f=$FILTER ..." echo "# f=$FILTER ..." >> $SEARCHOUT