On Tue, 2005-10-18 at 15:52 -0700, Gianmaria Clerici wrote:NormalizationService will use org.apache.ldap.common.name.DnParser to normalize a Name. Even if stange, this is plain normal. The reason is that 'ou' (OID 2.5.4.11) inherits from attribute 'name' (OID 2.5.4.41) which syntax is : name ATTRIBUTE ::= {
WITH SYNTAX DirectoryString {MAX}
EQUALITY MATCH RULE caseIgnoreMatch
SUBSTRINGS MATCHING RULE caseignoreSubstringsMatch
ID {id-at-name}
}
Its EQUALITY MATCH RULE is caseIgnore Match, and the RFC 2252 says :
8.1 :
...
When performing the caseIgnoreMatch, caseIgnoreListMatch,
telephoneNumberMatch, caseExactIA5Match and caseIgnoreIA5Match,
multiple adjoining whitespace characters are treated the same as an
individual space, and leading and trailing whitespace is ignored.
I will need to look up an object using the normalized value (down in my partition code), but it’s a bit more challenging if the spaces have been, partially, removed. Yes, it's challenging ;) And it's *not* funny at all to implement either ! -- Emmanuel |
- Re: DnParser Emmanuel Lecharny
- Which commons-collection do we use? Emmanuel Lecharny
- Re: Which commons-collection do we use? Alex Karasulu
- Re: DnParser Alex Karasulu
- Re: DnParser Emmanuel Lecharny
- Re: DnParser Ersin Er
- Re: DnParser Alex Karasulu
