[
https://issues.apache.org/jira/browse/KARAF-6517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16973419#comment-16973419
]
ASF subversion and git services commented on KARAF-6517:
--------------------------------------------------------
Commit 1819b9315b363a1174ea369f10b90b1480f86ecb in karaf's branch
refs/heads/master from Grzegorz Grzybek
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=1819b93 ]
[KARAF-6517] Implement no-arg createSocket() for SSLSocketFactory extension
> 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)