Dikla
Dikla

Reputation: 3491

LDAP | How to programmatically tell whether a search for specific attribute is case sensitive?

Many LDAP attributes are defined case-insensitive for search. For example:

userId ATTRIBUTE ::= {
    WITH SYNTAX DirectoryString { 256 }
    EQUALITY MATCHING RULE caseIgnoreMatch
    SUBSTRINGS MATCHING RULE caseIgnoreSubstringsMatch
    ID id-userid
}

However, this may be changed by the administrator.

How can I determine whether a specific attribute search is case-sensitive? Is there a way to check this programmatically?

Thanks!

Upvotes: 0

Views: 250

Answers (1)

user207421
user207421

Reputation: 310957

Use :caseExactMatch:. See RFC 4515.

Upvotes: 1

Related Questions