Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6517

LDAPLoginModule + SSL + connection timeout problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.7
    • 4.3.0, 4.2.8
    • karaf
    • None

    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

          Activity

            People

              ggrzybek Grzegorz Grzybek
              ggrzybek Grzegorz Grzybek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: