From: Pierangelo Masarati Date: Tue, 11 Dec 2007 17:05:31 +0000 (+0000) Subject: sort test output X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~324 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0792415c92aa851f42f836af521228fa8d7db8d1;p=openldap sort test output --- diff --git a/tests/data/dn.out b/tests/data/dn.out index c4d762ba50..5cc8214c50 100644 --- a/tests/data/dn.out +++ b/tests/data/dn.out @@ -1,14 +1,44 @@ +# Searching database... dn: dc=example,dc=com objectClass: domain objectClass: domainRelatedObject dc: example associatedDomain: example.com +dn: ou=LDAPv2,dc=example,dc=com +objectClass: organizationalUnit +ou: LDAPv2 +description: RFC 1779 compliant DN string representation + dn: ou=LDAPv3,dc=example,dc=com objectClass: organizationalUnit ou: LDAPv3 description: RFC 2253 compliant DN string representation +dn: cn=May Succeed 1,ou=LDAPv2,dc=example,dc=com +objectClass: groupOfNames +cn: May Succeed 1 +member: +description: " " // space, quote characters (") are not part of the string + +dn: cn=May Succeed 3,ou=LDAPv2,dc=example,dc=com +objectClass: groupOfNames +cn: May Succeed 3 +member: uid=jsmith,o=example,c=US +description: UID=jsmith, O=example, C=US // spaces + +dn: cn=May Succeed 4,ou=LDAPv2,dc=example,dc=com +objectClass: groupOfNames +cn: May Succeed 4 +member: uid=jsmith,o=example,c=US +description: UID=jsmith;O=example;C=US // semi-colons + +dn: cn=May Succeed 6,ou=LDAPv2,dc=example,dc=com +objectClass: groupOfNames +cn: May Succeed 6 +member: cn=John Smith,o=example,c=US +description: CN="John Smith",O=example,C=US // quotes + dn: cn=Must Succeed,ou=LDAPv3,dc=example,dc=com objectClass: groupOfNames cn: Must Succeed @@ -43,47 +73,6 @@ description: CN=\#John Smith\ ,DC=example,DC=net description: CN=Lu\C4\8Di\C4\87 description: testUUID=597ae2f6-16a6-1027-98f4-abcdefABCDEF,DC=Example -dn: cn=Unescaped Equals,ou=LDAPv3,dc=example,dc=com -objectClass: groupOfNames -cn: Unescaped Equals -member: cn=Unescaped Equals,ou=LDAPv3,dc=example,dc=com -member: cn=A*x\3Db is a linear algebra problem,ou=LDAPv3,dc=example,dc=com -description: cn=A*x=b is a linear algebra problem,ou=LDAPv3,dc=example,dc=com - // unescaped EQUALS - -dn: ou=LDAPv2,dc=example,dc=com -objectClass: organizationalUnit -ou: LDAPv2 -description: RFC 1779 compliant DN string representation - -dn: cn=May Succeed 1,ou=LDAPv2,dc=example,dc=com -objectClass: groupOfNames -cn: May Succeed 1 -member: -description: " " // space, quote characters (") are not part of the string - -dn: cn=May Succeed 3,ou=LDAPv2,dc=example,dc=com -objectClass: groupOfNames -cn: May Succeed 3 -member: uid=jsmith,o=example,c=US -description: UID=jsmith, O=example, C=US // spaces - -dn: cn=May Succeed 4,ou=LDAPv2,dc=example,dc=com -objectClass: groupOfNames -cn: May Succeed 4 -member: uid=jsmith,o=example,c=US -description: UID=jsmith;O=example;C=US // semi-colons - -dn: cn=May Succeed 6,ou=LDAPv2,dc=example,dc=com -objectClass: groupOfNames -cn: May Succeed 6 -member: cn=John Smith,o=example,c=US -description: CN="John Smith",O=example,C=US // quotes - -dn: ou=Related Syntaxes,dc=example,dc=com -objectClass: organizationalUnit -ou: Related Syntaxes - dn: cn=Name and Optional UID,ou=Related Syntaxes,dc=example,dc=com objectClass: groupOfUniqueNames cn: Name and Optional UID @@ -99,6 +88,10 @@ 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: ou=Related Syntaxes,dc=example,dc=com +objectClass: organizationalUnit +ou: Related Syntaxes + dn: cn=Should Parse as DN,cn=Name and Optional UID,ou=Related Syntaxes,dc=exam ple,dc=com objectClass: groupOfUniqueNames @@ -110,6 +103,15 @@ description: dc=example,dc=com#0'B // malformed UID? description: dc=example,dc=com#'0B // malformed UID? description: dc=example,dc=com '0'B // malformed UID? +dn: cn=Unescaped Equals,ou=LDAPv3,dc=example,dc=com +objectClass: groupOfNames +cn: Unescaped Equals +member: cn=Unescaped Equals,ou=LDAPv3,dc=example,dc=com +member: cn=A*x\3Db is a linear algebra problem,ou=LDAPv3,dc=example,dc=com +description: cn=A*x=b is a linear algebra problem,ou=LDAPv3,dc=example,dc=com + // unescaped EQUALS + +# Searching database for DN="OU=Sales+CN=J. Smith,DC=example,DC=net"... dn: cn=Must Succeed,ou=LDAPv3,dc=example,dc=com objectClass: groupOfNames cn: Must Succeed @@ -144,6 +146,7 @@ description: CN=\#John Smith\ ,DC=example,DC=net description: CN=Lu\C4\8Di\C4\87 description: testUUID=597ae2f6-16a6-1027-98f4-abcdefABCDEF,DC=Example +# Searching database for entryUUID-named DN="testUUID=597ae2f6-16a6-1027-98f4-ABCDEFabcdef,DC=Example"... dn: cn=Must Succeed,ou=LDAPv3,dc=example,dc=com objectClass: groupOfNames cn: Must Succeed @@ -178,6 +181,8 @@ description: CN=\#John Smith\ ,DC=example,DC=net description: CN=Lu\C4\8Di\C4\87 description: testUUID=597ae2f6-16a6-1027-98f4-abcdefABCDEF,DC=Example +# Searching database for nameAndOptionalUID="dc=example,dc=com"... +# Searching database for nameAndOptionalUID="dc=example,dc=com#'001000'B"... dn: cn=Name and Optional UID,ou=Related Syntaxes,dc=example,dc=com objectClass: groupOfUniqueNames cn: Name and Optional UID @@ -193,6 +198,7 @@ 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' +# Searching database for uniqueMember~="dc=example,dc=com" (approx)... dn: cn=Name and Optional UID,ou=Related Syntaxes,dc=example,dc=com objectClass: groupOfUniqueNames cn: Name and Optional UID @@ -208,6 +214,7 @@ 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' +# Searching database for uniqueMember~="dc=example,dc=com#'001000'B" (approx)... dn: cn=Name and Optional UID,ou=Related Syntaxes,dc=example,dc=com objectClass: groupOfUniqueNames cn: Name and Optional UID diff --git a/tests/scripts/test026-dn b/tests/scripts/test026-dn index 01bc2f8075..778655bb0d 100755 --- a/tests/scripts/test026-dn +++ b/tests/scripts/test026-dn @@ -55,7 +55,7 @@ cat /dev/null > $SEARCHOUT echo "Searching database..." echo "# Searching database..." >> $SEARCHOUT -$LDAPSEARCH -b "$BASEDN" -h $LOCALHOST -p $PORT1 >> $SEARCHOUT 2>&1 +$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 >> $SEARCHOUT 2>&1 RC=$? if test $RC != 0 ; then @@ -67,7 +67,7 @@ fi DN="OU=Sales+CN=J. Smith,DC=example,DC=net" echo "Searching database for DN=\"$DN\"..." echo "# Searching database for DN=\"$DN\"..." >> $SEARCHOUT -$LDAPSEARCH -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ +$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ "(member=$DN)" >> $SEARCHOUT 2>&1 RC=$? @@ -80,7 +80,7 @@ fi DN="testUUID=597ae2f6-16a6-1027-98f4-ABCDEFabcdef,DC=Example" echo "Searching database for entryUUID-named DN=\"$DN\"..." echo "# Searching database for entryUUID-named DN=\"$DN\"..." >> $SEARCHOUT -$LDAPSEARCH -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ +$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ "(member=$DN)" \ >> $SEARCHOUT 2>&1 @@ -94,7 +94,7 @@ fi DN="dc=example,dc=com" echo "Searching database for nameAndOptionalUID=\"$DN\"..." echo "# Searching database for nameAndOptionalUID=\"$DN\"..." >> $SEARCHOUT -$LDAPSEARCH -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ +$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ "(uniqueMember=$DN)" >> $SEARCHOUT 2>&1 RC=$? @@ -107,7 +107,7 @@ fi DN="dc=example,dc=com#'001000'B" echo "Searching database for nameAndOptionalUID=\"$DN\"..." echo "# Searching database for nameAndOptionalUID=\"$DN\"..." >> $SEARCHOUT -$LDAPSEARCH -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ +$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ "(uniqueMember=$DN)" >> $SEARCHOUT 2>&1 RC=$? @@ -120,7 +120,7 @@ fi DN="dc=example,dc=com" echo "Searching database for uniqueMember~=\"$DN\" (approx)..." echo "# Searching database for uniqueMember~=\"$DN\" (approx)..." >> $SEARCHOUT -$LDAPSEARCH -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ +$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ "(uniqueMember~=)" >> $SEARCHOUT 2>&1 RC=$? @@ -133,7 +133,7 @@ fi DN="dc=example,dc=com#'001000'B" echo "Searching database for uniqueMember~=\"$DN\" (approx)..." echo "# Searching database for uniqueMember~=\"$DN\" (approx)..." >> $SEARCHOUT -$LDAPSEARCH -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ +$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ "(uniqueMember~=$DN)" >> $SEARCHOUT 2>&1 RC=$?