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