Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does the LDAP protocol limit the length of a DN

Tags:

max

limit

ldap

dn

Does the LDAP protocol specify a maximum length that a DN can take?

I've looked through https://www.rfc-editor.org/rfc/rfc4514 but I can't find any restrictions that it imposes.

like image 304
tomdee Avatar asked Aug 10 '09 07:08

tomdee


3 Answers

Most implementations of LDAP DN's usually hit 256 characters, which I think comes from X.500 still. After all X.500 defines the DAP, and LDAP is the Lightweight DAP protocol.

like image 142
geoffc Avatar answered Nov 20 '22 05:11

geoffc


No, it doesn't seem to be specified explicitly anywhere - and the Active Directory implementation also doesn't impose a max length on the DN syntax (2.5.5.1).

Marc

like image 24
marc_s Avatar answered Nov 20 '22 05:11

marc_s


According to that reply to a similar question, ActiveDirectory limits the DN length to 255 characters.

like image 1
Anthony O. Avatar answered Nov 20 '22 05:11

Anthony O.