Commit 8a521c17 authored by Fredrik Roubert's avatar Fredrik Roubert Committed by Quanah Gibson-Mount
Browse files

ITS#9232 - Implement caseIgnoreListSubstringsMatch.

parent f876eac3
Pipeline #745 passed with stage
in 27 minutes and 51 seconds
......@@ -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' "
......
......@@ -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
......@@ -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
......
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