diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index c067ef825c..8a82a98260 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -6647,7 +6647,8 @@ static slap_mrule_defs_rec mrule_defs[] = { {"( 2.5.13.12 NAME 'caseIgnoreListSubstringsMatch' " "SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )", /* Substring Assertion */ SLAP_MR_SUBSTR, NULL, - NULL, NULL, NULL, NULL, NULL, + NULL, postalAddressNormalize, directoryStringSubstringsMatch, + octetStringSubstringsIndexer, octetStringSubstringsFilter, "caseIgnoreListMatch" }, {"( 2.5.13.13 NAME 'booleanMatch' " diff --git a/tests/data/search.out.xsearch b/tests/data/search.out.xsearch index 8bbddcad36..196bab14b4 100644 --- a/tests/data/search.out.xsearch +++ b/tests/data/search.out.xsearch @@ -643,3 +643,40 @@ attributeTypes: ( 0.9.2342.19200300.100.1.25 NAME ( 'dc' 'domainComponent' ) D ESC 'RFC1274/2247: domain component' EQUALITY caseIgnoreIA5Match SUBSTR caseI gnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) +dn: cn=Barbara Jensen,ou=Information Technology Division,ou=People,dc=example, + dc=com +postalAddress: ITD Prod Dev & Deployment $ 535 W. William St. Room 4212 $ Anyt + own, MI 48103-4943 + +dn: cn=Bjorn Jensen,ou=Information Technology Division,ou=People,dc=example,dc + =com +postalAddress: Info Tech Division $ 535 W. William St. $ Anytown, MI 48103 + +dn: cn=Dorothy Stevens,ou=Alumni Association,ou=People,dc=example,dc=com +postalAddress: Alumni Association $ 111 Maple St $ Anytown, MI 48109 + +dn: dc=example,dc=com +postalAddress: Example, Inc. $ 535 W. William St. $ Anytown, MI 48109 $ US + +dn: cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com +postalAddress: Alumni Association $ 111 Maple St $ Anytown, MI 48109 + +dn: cn=James A Jones 2,ou=Information Technology Division,ou=People,dc=example + ,dc=com +postalAddress: Info Tech Division $ 535 W William $ Anytown, MI 48103 + +dn: cn=Jane Doe,ou=Alumni Association,ou=People,dc=example,dc=com +postalAddress: Alumni Association $ 111 Maple St $ Anytown, MI 48109 + +dn: cn=Jennifer Smith,ou=Alumni Association,ou=People,dc=example,dc=com +postalAddress: Alumni Association $ 111 Maple St $ Anytown, MI 48109 + +dn: cn=John Doe,ou=Information Technology Division,ou=People,dc=example,dc=com +postalAddress: ITD $ 535 W. William $ Anytown, MI 48109 + +dn: cn=Mark Elliot,ou=Alumni Association,ou=People,dc=example,dc=com +postalAddress: Alumni Association $ 111 Maple St $ Anytown, MI 48109 + +dn: cn=Ursula Hampster,ou=Alumni Association,ou=People,dc=example,dc=com +postalAddress: Alumni Association $ 111 Maple St $ Anytown, MI 48109 + diff --git a/tests/scripts/test015-xsearch b/tests/scripts/test015-xsearch index 0545761ab4..634bb60a77 100755 --- a/tests/scripts/test015-xsearch +++ b/tests/scripts/test015-xsearch @@ -236,6 +236,17 @@ if test $RC != 0 ; then exit $RC fi +echo "Testing list substring searching..." +echo "# Testing list substring searching..." >> $SEARCHOUT +$LDAPSEARCH -S "" -b "$BASEDN" -h $LOCALHOST -p $PORT1 \ + '(postalAddress=*Anytown*)' postalAddress >> $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 LDIF=$SEARCHOUTPROVIDER