问题
Does the LDAP protocol specify a maximum length that a DN can take?
I've looked through http://tools.ietf.org/html/rfc4514 but I can't find any restrictions that it imposes.
回答1:
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
回答2:
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.
回答3:
According to that reply to a similar question, ActiveDirectory limits the DN length to 255 characters.
来源:https://stackoverflow.com/questions/1253575/does-the-ldap-protocol-limit-the-length-of-a-dn