Search code examples
ldapcase-insensitiveldap-queryapacheds

case insensitive LDAP searches


What is 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.


Solution

  • (uid=miXedCaseUSer) will match a uid of mixedcaseuser.

    According to the OID Description for 0.9.2342.19200300.100.1.1 - Userid userId is defined to have EQUALITY MATCHING RULE caseIgnoreMatch

    This means it is one of the attribute definitions that employ case-insensitive matching by default.