]> git.sur5r.net Git - openldap/commitdiff
Add an approx test to the mix
authorKurt Zeilenga <kurt@openldap.org>
Wed, 7 Apr 2004 22:30:52 +0000 (22:30 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 7 Apr 2004 22:30:52 +0000 (22:30 +0000)
tests/scripts/test003-search

index 734de12a5287e6fd26950bc94bef55dbad034522..f473680b31615cf8898e74aed2fd877d21bab104 100755 (executable)
@@ -77,7 +77,7 @@ fi
 
 echo "Testing OR searching..."
 $LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(|(givenname=Xx*yY*Z)(cn=)(undef=*)(objectclass=groupofnames)(sn=jones)(member=cn=Manager,o=University of Michigan,c=US)(uniqueMember=cn=Manager,o=University of Michigan,c=US))' >> $SEARCHOUT 2>&1
+       '(|(givenname=Xx*yY*Z)(cn=)(undef=*)(objectclass=groupofnames)(sn~=jones)(member=cn=Manager,o=University of Michigan,c=US)(uniqueMember=cn=Manager,o=University of Michigan,c=US))' >> $SEARCHOUT 2>&1
 RC=$?
 if test $RC != 0 ; then
        echo "ldapsearch failed ($RC)!"
@@ -107,7 +107,7 @@ fi
 
 echo "Testing objectClass/attributeType inheritance ..."
 $LDAPSEARCH -M -a never -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
-       '(&(objectClass=inetorgperson)(userid=uham))' \
+       '(&(objectClass~=inetorgperson)(userid=uham))' \
        "2.5.4.0" "userid" >> $SEARCHOUT 2>&1
 RC=$?
 if test $RC != 0 ; then