NetWorker AD/LDAP 集成失败并显示“LDAP: error code 34”
Summary: 将 Active Directory (AD) 或轻型目录访问协议 (LDAP) 添加到 NetWorker 失败,并显示 LDAP 错误代码 34。之所以出现此错误,是因为在集成外部身份验证时,其中一个可分辨名称 (DN) 字段中存在特殊字符。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
来自 NetWorker Management Console (NMC) 或 NetWorker Web 用户界面 (NWUI) 的 AD/LDAP 集成失败,并显示以下错误:
Failed to verify configuration CONFIG_NAME: An error occurred while processing LDAP request: CN=#IT,dc=amer,dc=lan: [LDAP: error code 34 - 0000208F: LdapErr: DSID-0C090C21, comment: Error processing name, data 0, v3839]
使用 authc_config 命令或 authc-create-xx-config 脚本的 AD/LDAP 集成失败,并显示以下错误:
Error executing command. Failure: 400 Bad Request. Server message: Failed to verify configuration labad: cn=#IT: [LDAP: error code 34 - 0000208F: NameErr: DSID-0310022D, problem 2006 (BAD_NAME), data
8349, best match of:
'CN=#IT,dc=amer,dc=lan'
]; nested exception is javax.naming.InvalidNameException: cn=#IT: [LDAP: error code 34 - 0000208F: NameErr: DSID-0310022D, problem 2006 (BAD_NAME), data 8349, best match of:
'CN=#IT,dc=amer,dc=lan'
]; remaining name 'cn=#IT'Cause
在外部机构集成中指定的可分辨名称 (DN) 字段中有一个特殊字符。特殊字符干扰路径,必须正确转义。
LDAP 错误代码 34:此代码表示“DN 语法无效”错误。这意味着请求中提供的 DN 格式不正确。
0000208F:LdapErr:DSID-0C090C21:这部分消息特定于 Microsoft 的 Active Directory,并提供有关错误发生位置的内部详细信息。
0000208F:NameErr:DSID-0310022D:这部分消息特定于 Microsoft 的 Active Directory,并提供有关错误发生位置的内部详细信息。
Error processing name:这表示 LDAP 服务器在尝试处理 DN 时遇到问题。
问题 2006 (BAD_NAME):这表示 LDAP 服务器遇到了 DN 问题;它被认为是一个“坏名声”
此错误的常见原因包括:
- DN 格式不正确:确保 DN 遵循正确的语法,例如 CN=John Doe,OU=Users,DC=example,DC=com。
- 特殊字符:避免使用未正确转义的特殊字符。
Resolution
如果特殊字符驻留在外部机构配置中使用的可分辨名称 (DN) 中,则必须对其进行转义。在本文显示的示例中, 组搜索路径 设置为:
CN=#IT,dc=amer,dc=lan
# 必须使用反斜杠 (\) 进行转义:
CN=\#IT,dc=amer,dc=lanAdditional Information
必须对以下特殊字符进行转义,以确保格式正确并避免错误:
- 逗号 (,):\,
- 反斜杠 (\):\\
- 井号 (#):\#
- 加号 (+):\+
- 小于符号 (<):\<
- 大于符号 (>):\>
- 分号 (;):\;
- 双引号 (“):\"
- 等号 (=):\=
- 前导空格或尾随空格:\
Affected Products
NetWorkerProducts
NetWorkerArticle Properties
Article Number: 000034493
Article Type: Solution
Last Modified: 14 Mar 2025
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.