Skip to content
Snippets Groups Projects
Commit 9be8c786 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#8046 add vrFilter test

parent de605a19
No related branches found
No related tags found
No related merge requests found
......@@ -635,6 +635,9 @@ dn: dc=example,dc=com
dc: example
o: Example, Inc.
dn: dc=example,dc=com
dc: example
dn: cn=Subschema
attributeTypes: ( 0.9.2342.19200300.100.1.25 NAME ( 'dc' 'domainComponent' ) D
ESC 'RFC1274/2247: domain component' EQUALITY caseIgnoreIA5Match SUBSTR caseI
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment