]> git.sur5r.net Git - openldap/blobdiff - tests/scripts/test015-xsearch
more whoami tests
[openldap] / tests / scripts / test015-xsearch
index ef20cbbde5385cccd2812b4344afd55c99b12fac..ec0f9c0a2be572a2d54b7caf3f09454bfce5ae84 100755 (executable)
@@ -75,6 +75,16 @@ if test $RC != 0 ; then
        exit $RC
 fi
 
+echo "Testing approximate searching..."
+$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
+       '(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 -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
        '(|(givenName=XX*YY*Z)(cn=)(undef=*)(objectclass=groupofnames)(objectclass=groupofuniquenames)(sn:caseExactMatch:=Jones))' >> $SEARCHOUT 2>&1
@@ -115,10 +125,9 @@ if test $RC != 0 ; then
        test $KILLSERVERS != no && kill -HUP $KILLPIDS
        exit $RC
 fi
-
 echo "Testing extended RFC2254 searching..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(:dn:caseExactMatch:=University of Michigan)' >> $SEARCHOUT 2>&1
+       '(:dn:caseIgnoreIA5Match:=example)' >> $SEARCHOUT 2>&1
 
 RC=$?
 if test $RC != 0 ; then
@@ -129,8 +138,8 @@ fi
 
 echo "Testing values return filter searching..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       -E '!mv=(o=University of Michigan)' \
-       '(o=University of Michigan)' >> $SEARCHOUT 2>&1
+       -E '!mv=(o=Example, Inc.)' \
+       '(o=Example, Inc.)' >> $SEARCHOUT 2>&1
 RC=$?
 if test $RC != 0 ; then
        echo "ldapsearch failed ($RC)!"