Problems connecting to LDAP using TLS

One Star

Problems connecting to LDAP using TLS

Hello,
I want to use the tLDAPInput component to connect to our LDAP using TLS, but I am not able to achieve this.
First of all, is TLS the same as StartTLS?
When filling in all my credentials and using SSL, my connection works. But when using TLS it doesn't work and I hava to use StartTLS which is a demand of my boss.
I get the following error:
Starte Job LDAP am 14:16 13/11/2013.

connecting to socket on port 3775
connected
Exception in component tLDAPInput_1
disconnected
java.lang.Exception: javax.naming.AuthenticationNotSupportedException:
at portaldwjobs.ldap_0_1.LDAP.tLDAPInput_1Process(LDAP.java:1635)
at portaldwjobs.ldap_0_1.LDAP.tPostgresqlInput_1Process(LDAP.java:935)
at portaldwjobs.ldap_0_1.LDAP.runJobInTOS(LDAP.java:1879)
at portaldwjobs.ldap_0_1.LDAP.main(LDAP.java:1724)
Caused by: javax.naming.AuthenticationNotSupportedException:
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.<init>(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.ldap.InitialLdapContext.<init>(Unknown Source)
at portaldwjobs.ldap_0_1.LDAP.tLDAPInput_1Process(LDAP.java:1499)
... 3 more
Job LDAP endet am 14:16 13/11/2013.
Can anybody tell me what my mistake is?
Community Manager

Re: Problems connecting to LDAP using TLS

Hi Nadia
I see you have resolved the problem by customizing Java code on tJava/tJavaFlex component in another topic. You are appreciate if you can share your solution with the Java code in forum, it will be helpful for others who might get the same problem.
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog