Description
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:
javax.net.SocketFactory#createSocket()
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.
Attachments
Issue Links
- is related to
-
KARAF-4607 ldap connection pool not created when using ssl (ldaps)
- Resolved