[ 
https://issues.apache.org/jira/browse/DIRSTUDIO-1197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin van Es reopened DIRSTUDIO-1197:
--------------------------------------

The problem has not been resolved.
Tested with Build #62 (Jan 29, 2020 1:44:01 AM)
On Linux (Ubuntu 19.10)

We connect to openldap via haproxy SSL server

Output after connecting:
Error while opening connectionError while opening connection - PROTOCOL_ERROR: 
The server will 
disconnect!org.apache.directory.api.ldap.model.exception.LdapProtocolErrorException:
 PROTOCOL_ERROR: The server will disconnect! at 
org.apache.directory.api.ldap.model.message.ResultCodeEnum.processResponse(ResultCodeEnum.java:2137)
 at 
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.checkResponse(DirectoryApiConnectionWrapper.java:1292)
 at 
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.access$11(DirectoryApiConnectionWrapper.java:1288)
 at 
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper$2.run(DirectoryApiConnectionWrapper.java:490)
 at 
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.runAndMonitor(DirectoryApiConnectionWrapper.java:1214)
 at 
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.doBind(DirectoryApiConnectionWrapper.java:499)
 at 
org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.bind(DirectoryApiConnectionWrapper.java:310)
 at 
org.apache.directory.studio.connection.core.jobs.OpenConnectionsRunnable.run(OpenConnectionsRunnable.java:114)
 at 
org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:109)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
PROTOCOL_ERROR: The server will disconnect!

 

haproxy log says:
{{ldap_ldap.scz-vm.net_636/1: SSL handshake failure}}

 

ldapsearch says (directory is empty, but connection is succesful)
{{$ ldapsearch -H ldaps://ldap.scz-vm.net -D 'cn=admin,dc=services,dc=vnet' -w 
**** }}
{{# extended LDIF }}
{{# }}
{{# LDAPv3 }}
{{# base <> (default) with scope subtree }}
{{# filter: (objectclass=*) }}
{{# requesting: ALL }}
{{# }}
 
{{# search result }}
{{search: 2 }}
{{result: 32 No such object }}
 
{{# numResponses: 1}}

> Connection Network check fails when using the LDAP API
> ------------------------------------------------------
>
>                 Key: DIRSTUDIO-1197
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-1197
>             Project: Directory Studio
>          Issue Type: Bug
>          Components: studio-connection
>    Affects Versions: 2.0.0-M14
>            Reporter: Emmanuel Lécharny
>            Priority: Major
>             Fix For: 2.0.0-M15
>
>
> When trying to check a network connection using SSL, with the LDAP API, we 
> get an Handshake exception:
> {noformat}
> The connection failed
>  - ERR_04122_SSL_CONTEXT_INIT_FAILURE Failed to initialize the SSL context
>   org.apache.directory.api.ldap.model.exception.LdapException: 
> ERR_04122_SSL_CONTEXT_INIT_FAILURE Failed to initialize the SSL context
>       at 
> org.apache.directory.ldap.client.api.LdapNetworkConnection.connect(LdapNetworkConnection.java:695)
>       at 
> org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper$1.run(DirectoryApiConnectionWrapper.java:247)
>       at 
> org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.runAndMonitor(DirectoryApiConnectionWrapper.java:1312)
>       at 
> org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.doConnect(DirectoryApiConnectionWrapper.java:281)
>       at 
> org.apache.directory.studio.connection.core.io.api.DirectoryApiConnectionWrapper.connect(DirectoryApiConnectionWrapper.java:172)
>       at 
> org.apache.directory.studio.connection.core.jobs.CheckNetworkParameterRunnable.run(CheckNetworkParameterRunnable.java:80)
>       at 
> org.apache.directory.studio.connection.ui.RunnableContextRunner$1.run(RunnableContextRunner.java:140)
>       at 
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)
> Caused by: 
> org.apache.directory.api.ldap.model.exception.LdapOperationException: 
> ERR_04120_TLS_HANDSHAKE_ERROR The TLS handshake failed
>       at 
> org.apache.directory.ldap.client.api.LdapNetworkConnection.connect(LdapNetworkConnection.java:688)
>       ... 7 more
>   ERR_04122_SSL_CONTEXT_INIT_FAILURE Failed to initialize the SSL context
> {noformat}
> I'm using java {{1.8.0_171}} on Mac OSX.
> The thing is that checking networking connection using {{JNDI}} just works. 
> Even weirder is that if I check the authentication, I get the connection 
> working just fine.
> There is something fishy in the connection check...



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to