NetWorker AD/LDAP 整合失敗,並顯示「LDAP:錯誤代碼 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,並提供發生錯誤位置的內部詳細資料。
處理名稱時發生錯誤:這表示 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.