You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Grzegorz Grzybek (Jira)" <ji...@apache.org> on 2019/11/13 15:00:00 UTC

[jira] [Resolved] (KARAF-6517) LDAPLoginModule + SSL + connection timeout problem

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

Grzegorz Grzybek resolved KARAF-6517.
-------------------------------------
    Resolution: Fixed

> LDAPLoginModule + SSL + connection timeout problem
> --------------------------------------------------
>
>                 Key: KARAF-6517
>                 URL: https://issues.apache.org/jira/browse/KARAF-6517
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.7
>            Reporter: Grzegorz Grzybek
>            Assignee: Grzegorz Grzybek
>            Priority: Major
>             Fix For: 4.3.0, 4.2.8
>
>
> Karaf uses special {{org.apache.karaf.jaas.modules.ldap.ManagedSSLSocketFactory}} that extends {{javax.net.ssl.SSLSocketFactory}} class. And when you have connection timeout specified, first (using reflection) this method is called:
> {code:java}
> javax.net.SocketFactory#createSocket()
> {code}
> in base class ({{SocketFactory}}), it simply throws {{UnsupportedOperationException}} with _Unconnected sockets not implemented_ message!
> {{sun.security.ssl.SSLSocketFactoryImpl#createSocket()}} is correct, as it creates _unconnected socket_, but {{ManagedSSLSocketFactory}} extends {{javax.net.ssl.SSLSocketFactory}} directly and doesn't implement no-arg {{createSocket()}} method.
> So I have to fix {{org.apache.karaf.jaas.modules.ldap.ManagedSSLSocketFactory}}.



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