D.4. Troubleshooting Matching Rules

D.4. Troubleshooting Matching Rules

International collation order matching rules may not behave consistently. Some forms of matching-rule invocation do not work correctly, producing incorrect search results. For example, the following rules do not work:

ldapsearch -p 389 -D "uid=userID,ou=people,dc=example,dc=com" -w password 
     -b "dc=example,dc=com" "sn:2.16.840.1.113730.3.3.2.7.1:=passin"

ldapsearch -p 389 -D "uid=userID,ou=people,dc=example,dc=com" -w password 
     -b "dc=example,dc=com" "sn:de:=passin"

However, the rules listed below will work (note the .3 before the passin value):

ldapsearch -p 389 -D "uid=userID,ou=people,dc=example,dc=com" -w password 
     -b "dc=example,dc=com" "sn:2.16.840.1.113730.3.3.2.7.1.3:=passin"

ldapsearch -p 389 -D "uid=userID,ou=people,dc=example,dc=com" -w password 
     -b "dc=example,dc=com" "sn:de.3:=passin"

Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.