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?
1 REPLY
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