Re: What can be the maximum size of a LDAP Name?

"Dieter Kluenter" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Message-ID <[email protected]>
Chris Ridd <[email protected]> writes:

> On 16 Mar 2009, at 14:05, raga wrote:
>
>> I've to store LDAP Name in a database Column. What should be the
>> minimum size of that column . And is there any rationale for that?.
>> The Format of LDAP Name  is like that of e-mail id.
>
> The mail attribute is defined in RFC 2798 as having a minimum upper
> bound of 256 characters. In other words your database field needs to
> be *at least* 256 characters wide. That definition appears to have
> been taken from RFC 1274.

There is no such definition in RFC 2798. This RFC only refers to
attribute type mail as a MAY clause in inetorgPerson object class.

> You will need to do some archeology to figure out why 256 was felt to
> be a good minimum upper bound... I suspect the authors of those RFCs
> no longer remember :-)

The attribute type rfc822-mailbox is described in RFC 1274 and the
length is defined in section 9.5 'Upper bounds of length of attribute
values':
ub-rfc822-mailbox INTEGER ::= 256

-Dieter

-- 
Dieter Klünter | Systemberatung
http://www.dpunkt.de/buecher/2104.html
sip: +49.180.1555.7770535
GPG Key ID:8EF7B6C6
53°08'09,95"N
10°08'02,42"E
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.