[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Leading and Trailing Spaces



Lon Tierney writes:
> I can't seem to find anything in the RFCs that state if leading or
> trailing spaces in attribute values are allowed.

They are.

> The only thing I can find is in RFC 2849 (LDIF) which says that values
> ending in a space should be base64 encoded.

Yes, but that's just in LDIF, not in the protocol.

> Is it dependent on the particular syntax?

No.  However, many string matching rules ignore leading and trailing
space (and treat multiple adjoining whitespace as a single space) when
comparing attribute values.  E.g. caseIgnoreMatch, caseExactMatch, and
others, in particular those used on DirectoryString.

-- 
Hallvard