views:

564

answers:

2

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
+1 thanks. I clarified my question.
harschware
+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
So, you've answered your own question? Then mark your own answer as accepted.
Per Noalt
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
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