【发布时间】:2019-10-30 22:34:59
【问题描述】:
我在我的应用程序中使用以下内容:https://www.novell.com/documentation/developer/jldap/jldapenu/api/com/novell/ldap/util/DN.html。
为了创建 DN 对象,我需要放入 dnString,它必须遵守 RFC 2253 中描述的语法。
我的 DN 包含:“\”和“,”字符(还有“\”,它们都紧挨着)。
我找不到任何可以准确解释如何为 RFC 2253 获取有效 DN 的站点。我发现:
https://ldapwiki.com/wiki/RFC%202253
https://www.rfc-editor.org/rfc/pdfrfc/rfc2253.txt.pdf
都提到“,”和“\”是特殊字符,但没有说明如何正确转义。
如何获得具有这些值的有效 DN?
【问题讨论】:
标签: active-directory ldap rfc distinguishedname