我在我的应用程序中使用以下内容: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?