LDAP | How to programmatically tell whether a search for specific attribute is case sensitive?
Many LDA开发者_StackOverflow中文版P 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!
Use :caseExactMatch:. See RFC 4515.
精彩评论