LDAP协议是否限制DN的长度
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
大多数 LDAP DN 的实现通常达到 256 个字符,我认为这仍然来自 X.500。 毕竟X.500定义了DAP,而LDAP是轻量级DAP协议。
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.
不,它似乎没有在任何地方明确指定 - 并且 Active Directory 实现也没有对 DN 语法强加最大长度 (2.5.5.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
根据对的回复类似的问题,ActiveDirectory将DN长度限制为255个字符。
According to that reply to a similar question, ActiveDirectory limits the DN length to 255 characters.