Can't search LDAP data source. For detailed information, please check control center and DDS log. DDS error code 800402
search cancel

Can't search LDAP data source. For detailed information, please check control center and DDS log. DDS error code 800402

book

Article ID: 162307

calendar_today

Updated On:

Products

Messaging Gateway

Issue/Introduction

You are trying to add an LDAP group while creating a new policy group in Symantec Messaging Gateway.

  1. Go to Administration>>Policy Groups.
  2. Click "Add" to add a new group.
  3. Create a Policy Group Name.
  4. Click on "Add" to add members.
  5. Click on "Show LDAP Groups"


There you will receive the following error.

"​Can't search LDAP data source. For detailed information, please check the control center and DDS log. DDS error code 800402"
  When you click on " Show LDAP Groups", you will receive the following error.

"Can't search LDAP data source. For detailed information, please check the control center and DDS log. DDS error code 800402"


In Control Center Logs:

Aug 25 2015 17:39:53 [http-bio-443-exec-345] [DDSClientHelper] ERROR - Unable to search LDAP data source. Check the Control Center and DDS logs for details. DDS error code: 800402 
com.symantec.sms.dds.api.exception.XMLRPCServerFaultReceivedException: An error occurred while attempting to make a request of the DDS server at localhost:41018. server fault code: [800402]  server message: [Permanent failure while attempting to search data source: LDAPNAME LDAP   Reason: Lexical error at line 1, column 28.  Encountered: "\\" (92), after : ""]​

In DDS logs:

Aug 28 2015 09:58:01 [btpool0-390] [LoggingDDS] ERROR - [1437448053202] 800402 
com.symantec.sms.dds.api.exception.DataAccessSearchFailureException: Permanent failure while attempting to search data source: Customer LDAP   Reason: Lexical error at line 1, column 28.  Encountered: "\\" (92), after : ""

..................

Caused by: org.springframework.ldap.UncategorizedLdapException: Uncategorized exception occurred during LDAP processing; nested exception is javax.naming.NamingException: problem generating object using object factory [Root exception is org.springframework.ldap.BadLdapGrammarException: Failed to parse DN; nested exception is org.springframework.ldap.core.TokenMgrError: Lexical error at line 1, column 28.  Encountered: "\\" (92), after : ""]; remaining name 'DC=Customer Domain,DC=GROUP'

...................................................

Caused by: javax.naming.NamingException: problem generating object using object factory [Root exception is org.springframework.ldap.BadLdapGrammarException: Failed to parse DN; nested exception is org.springframework.ldap.core.TokenMgrError: Lexical error at line 1, column 28.  Encountered: "\\" (92), after : ""]; remaining name 'DC=Customer Domain,DC=GROUP'​


 

Cause

This is caused by the "\" in the group or username. Normally, LDAP will not let you create a group with "\" in the group name or it will be replaced by "_"  . 

Resolution

In order to avoid this, please make sure that you are not using group names with "\" character in the names.