From aa681f980d13a787fb979e897cbdf11efa974693 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 28 Mar 2005 18:07:17 +0000 Subject: [PATCH] Update test026 for updated uniqueMemberMatch semantics --- tests/data/dn.out | 15 +++++++++++++++ tests/scripts/test026-dn | 22 ++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/tests/data/dn.out b/tests/data/dn.out index 85bf04e49e..bc97e96018 100644 --- a/tests/data/dn.out +++ b/tests/data/dn.out @@ -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' + diff --git a/tests/scripts/test026-dn b/tests/scripts/test026-dn index 5d7f618b05..6d1223bf61 100755 --- a/tests/scripts/test026-dn +++ b/tests/scripts/test026-dn @@ -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 -- 2.39.5