Commit aa681f98 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Update test026 for updated uniqueMemberMatch semantics

parent 62d21aad
......@@ -170,3 +170,18 @@ description: #'0010'B // empty "" DN with leading '0's
description: dc=example,dc=com#'1000'B // with DN portion
description: dc=example,dc=com#'0'B // with DN portion and just one '0'
dn: cn=Name and Optional UID,ou=Related Syntaxes,dc=example,dc=com
objectClass: groupOfUniqueNames
cn: Name and Optional UID
uniqueMember: cn=Name and Optional UID,ou=Related Syntaxes,dc=example,dc=com
uniqueMember: #'1'B
uniqueMember: #'10'B
uniqueMember: dc=example,dc=com#'1000'B
uniqueMember: dc=example,dc=com#'0'B
description: cn=Name and Optional UID,ou=Related Syntaxes,dc=example,dc=com //
only DN portion
description: #'1'B // empty "" DN
description: #'0010'B // empty "" DN with leading '0's
description: dc=example,dc=com#'1000'B // with DN portion
description: dc=example,dc=com#'0'B // with DN portion and just one '0'
......@@ -92,6 +92,28 @@ if test $RC != 0 ; then
exit $RC
fi
echo "Searching database for uniqueMember (approx) ..."
$LDAPSEARCH -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
"(uniqueMember~=dc=example,dc=com)" >> $SEARCHOUT 2>&1
RC=$?
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
echo "Searching database for uniqueMember (approx) ..."
$LDAPSEARCH -b "$BASEDN" -h $LOCALHOST -p $PORT1 \
"(uniqueMember~=dc=example,dc=com#'001000'B)" >> $SEARCHOUT 2>&1
RC=$?
if test $RC != 0 ; then
echo "ldapsearch failed ($RC)!"
test $KILLSERVERS != no && kill -HUP $KILLPIDS
exit $RC
fi
test $KILLSERVERS != no && kill -HUP $KILLPIDS
LDIFOUT=$DNOUT
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment