About nsMatchingRule in indexes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Juan Asensio S?nchez wrote:
> Hi
>
> I am trying to make our directory more "user friendly". We are in 
> Spain, so there are people names like mine, "Juan Asensio S?nchez" 
> (S?nchez with tilde). Well, i I do a search with filter 
> "(cn=*s?nchez)" (with tilde), and I get my user in the results, but if 
> i try with the filter "(cn=*sanchez)" (without tilde), i get no 
> results (I understand why). Is there anyway to make searches using 
> indexes with the attribute nsMatchingRule to behave as I need?
>
> I have tried with:
>
> nsMatchingRule: caseIgnoreSubstringMatch-es
>
> in the cn index, but using the second filter "(cn=*sanchez)", i am 
> already having no results.
>
> NB: I know I can use cn;lang-en, but this implies add more attributes 
> manually, duplicate similar values, etc.
Have you seen this: 
http://www.redhat.com/docs/manuals/dir-server/8.1/admin/Finding_Directory_Entries-Searching_an_Internationalized_Directory.html

You first have to figure out the OID for the type of index you want to 
create e.g. from slapd-collations.conf
collation es "" "" 1 3    2.16.840.1.113730.3.3.2.15.1    es    es-ES

So you would have to specify the nsMatchingRule as 
2.16.840.1.113730.3.3.2.15.1.6 for the es language substring matching 
rule.  Note that the directory server uses ICU for collation, so if you 
want to know exactly how it collates and generates index keys for es 
with regards to tilde and accent handling, please refer to the ICU 
documentation.
>
> Regards.
> ------------------------------------------------------------------------
>
> --
> 389 users mailing list
> 389-users at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-users



[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux