I'm currently testing a quick and dirty hack that I made to servers/slapd/schema_prep.c:
--- schema_prep.c.ori 2010-01-15 13:28:04.000000000 -0200
+++ /root/openldap-2.4.21/servers/slapd/schema_prep.c 2010-01-15 13:04:56.000000000 -0200
@@ -915,6 +915,7 @@ static struct slap_schema_ad_map {
� offsetof(struct slap_internal_schema, si_ad_name) },
� { "cn", "( 2.5.4.3 NAME ( 'cn' 'commonName' ) "
� "DESC 'RFC4519: common name(s) for which the entity is known by' "
+ "ORDERING caseIgnoreOrderingMatch "
� "SUP name )",
� NULL, 0,
� NULL, NULL,
@@ -924,6 +925,7 @@ static struct slap_schema_ad_map {
� "DESC 'RFC4519: user identifier' "
� "EQUALITY caseIgnoreMatch "
� "SUBSTR caseIgnoreSubstringsMatch "
+ "ORDERING caseIgnoreOrderingMatch "
� "SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )",
� NULL, 0,
� NULL, NULL,
By making these changes I've been able to get around my current problem, but it might not be as stable as you expect.