What't the syntax for performing a case-insensitive match on a 'uid' attribute? If attribute definition matters then how would that be changed? In particular I am using ApacheDS for my LDAP store.
+1
A:
I think they are case insensitive by default, unless its a password attribute.
Chalkey
2010-01-06 23:38:55
+1 thanks. I clarified my question.
harschware
2010-01-06 23:45:08
+1
A:
(uid=mixCaseUSer)
will match a uid of mixedcaseduser.
Accoriding to the OID Description for 0.9.2342.19200300.100.1.1 - Userid userId is defined to have EQUALITY MATCHING RULE caseIgnoreMatch
Which means it is one of the attribute definitions that employ case insensitive matching by default.
harschware
2010-01-07 00:33:18
So, you've answered your own question? Then mark your own answer as accepted.
Per Noalt
2010-01-07 08:36:29
Of course, but SO imposes a waiting period for that. Besides, I'm not even convinced mine is the best answer. One thing that annoys me here is that the search type is modeled into the attribute, what do I do if I now want case-sensitive searches on uid? Are there other ways? There must be a way to change case sensitivity in the search... I hope.
harschware
2010-01-07 15:45:52
Try overriding the default matching rule for the attribute using extensible matching: (uid:caseExactMatch:=mixCaseUSer). If it works it will probably be a lot slower than using the default matching rule for the attribute.
Per Noalt
2010-01-09 22:53:34