AnsweredAssumed Answered

LDAP connection and query error

Question asked by faisal.ali397074 on Nov 9, 2016
Latest reply on Jan 24, 2017 by heekeat.foo

Hi All,

 

I am using Boomi to create an LDAP connection and perform a simple query

Note: I have used an eclipse plugin and the connection/query is working fine, so this question is specific to how to configure Boomi to match eclipse

 

The connection is configured with server name, port 389, and username like:

uid=serviceaccount1,ou=serviceaccounts,dc=<companyname>,dc=com

 

The operation is configured:

Object: to query a user

base object to search from: ou=people,dc=s<companyname>,dc=com

Filter: searchBase Equal to

 

Parameter for searchBase is configured as Static with value:

(&(objectClass=person)(employeeNumber=2113546))

 

Below is the error I get:

<result>
<status>Error</status>
<message>javax.naming.InvalidNameException: (&amp;(objectClass=person)(employeeNumber=2113546)): [LDAP: error code 34 - Invalid DN]&semi; remaining name &apos;(&amp;(objectClass=person)(employeeNumber=2113546))&apos;???at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)???at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)???at com.sun.jndi.ldap.LdapCtx.searchAux(Unknown Source)???at com.sun.jndi.ldap.LdapCtx.c_search(Unknown Source)???at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(Unknown Source)???at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(Unknown Source)???at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(Unknown Source)???at javax.naming.directory.InitialDirContext.search(Unknown Source)???at com.boomi.connector.LDAP.LDAPConnection.QueryObjectWithPagination(LDAPConnection.java:470)???at com.boomi.connector.LDAP.LDAPQueryOperation.executeQuery(LDAPQueryOperation.java:158)???at com.boomi.connector.util.BaseQueryOperation.execute(BaseQueryOperation.java:30)???at com.boomi.connector.generic.GenericConnectorAction.invoke(GenericConnectorAction.java:171)???at com.boomi.connector.base.BaseConnectorAction.invokeBase(BaseConnectorAction.java:295)???at com.boomi.connector.base.BaseConnectorAction.invoke(BaseConnectorAction.java:262)???at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source)???at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)???at java.lang.reflect.Method.invoke(Unknown Source)???at com.boomi.util.ClassUtil$InvokerWithClassLoader.invoke(ClassUtil.java:369)???at com.sun.proxy.$Proxy42.invoke(Unknown Source)???at com.boomi.process.shape.ConnectorShapeHandler.execute(ConnectorShapeHandler.java:150)???at com.boomi.process.shape.ConnectorShape.execute(ConnectorShape.java:143)???at com.boomi.process.graph.ProcessShape.executeShape(ProcessShape.java:550)???at com.boomi.process.graph.ProcessGraph.executeShape(ProcessGraph.java:488)???at com.boomi.process.graph.ProcessGraph.executeNextShapes(ProcessGraph.java:572)???at com.boomi.process.graph.ProcessGraph.execute(ProcessGraph.java:307)???at com.boomi.process.ProcessExecution.call(ProcessExecution.java:783)???at com.boomi.execution.ExecutionTask.call(ExecutionTask.java:918)???at com.boomi.execution.ExecutionTask.call(ExecutionTask.java:61)???at com.boomi.util.concurrent.CancellableFutureTask.run(CancellableFutureTask.java:172)???at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)???at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)???at java.lang.Thread.run(Unknown Source)??</message>
</result>

Test Results
Logs
Shape Source Data
Connection Data
1-3 of 3
TimeLevelShapeExt InfoMessageDetails
2016-11-09 04:43:01 PM
INFO
Connector
GID_Test: wdci-AP4T8S-LDAP-pub_prod Connector; GIAM LDAP Connector Operation
Executing Connector Shape
2016-11-09 04:43:01 PM
FINE
Connector
GID_Test: wdci-AP4T8S-LDAP-pub_prod Connector; GIAM LDAP Connector Operation
Getting parameter for position 1
2016-11-09 04:43:01 PM
FINE
Connector
GID_Test: wdci-AP4T8S-LDAP-pub_prod Connector; GIAM LDAP Connector Operation
Parameter 1 value = (&(objectClass=person)(employeeNumber=2113546))

 

As I mentioned this works fine using the Eclipse LDAP:

 

Config:

 

results:

Outcomes