How to resolve the error "unable to bind connection: ERR_04202 A value is missing on some RDN"

How to resolve the error "unable to bind connection: ERR_04202 A value is missing on some RDN"

book

Article ID: KB0075456

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for LDAP ALL

Description

Users using LDAP Plugin can get an error "unable to bind connection: ERR_04202 A value is missing on some RDN". Please refer sample logs given below:
****************************************
12:06:11.014 ERROR [pool-6-thread-1] o.a.d.l.c.a.DefaultLdapConnectionFactory - unable to bind connection: ERR_04202 A value is missing on some RDN
12:06:11.014 ERROR [pool-6-thread-1] c.t.b.s.l.r.LDAPConnectionResource - Create connection failed: ERR_04202 A value is missing on some RDN
12:06:11.014 ERROR [pool-6-thread-1] c.t.b.s.l.r.LDAPConnectionResource - Reconnect failed on attempt 3, and all the retries are failed
12:06:11.033 ERROR [bwEngThread:In-Memory Process Worker-2] com.tibco.bw.core - 
<Data>
<ns0:LDAPException xmlns:ns0="http://schemas.tibco.com/bw/plugins/ldap/7.1/ldapExceptions">
    <msg>The connection is invalid.-{ActivityName=SearchEntry, ProcessName=test.module.Process, ModuleName=test.module}</msg>
    <msgCode>501000</msgCode>
</ns0:LDAPException>
</Data>
TIBCO-BW-CORE-500050: The BW process [test.module.Process] instance faulted, JobId [bw0a100], ProcessInstanceId [bw0a100], ParentProcessInstanceId [-], Module [test.module:1.0.0.qualifier], Application [test:1.0].  
   <CausedBy> TIBCO-BW-CORE-500051: Activity [SearchEntry] fault.  
   <CausedBy> com.tibco.bw.palette.ldap.runtime.exception.LDAPExceptionFault: The connection is invalid.-{ActivityName=SearchEntry, ProcessName=test.module.Process, ModuleName=test.module}
****************************************
This error is due to the use of uid as a username in Identity Provider while configuring the LDAP connection in LDAP Plugin. LDAP Plugin Activities which are using such connection will fail with above error.

Resolution

To resolve the issue, please use complete Distinguished Name(DN) as username in Identity Provider used in configuring the LDAP connection. The username should be a valid DN like cn=test user,ou=people, dc=abcdomain, dc =com. 

Issue/Introduction

Resolving the LDAP plugin error "unable to bind connection: ERR_04202 A value is missing on some RDN"