Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-18307

LDAP fails on JDK-16

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Out of Date
    • 12.0.4, 13.0.1
    • Backlog
    • LDAP
    • Hide

      On the latest JDK-16 try to test connection or any other LDAP command and the error above will appear in the log.

      Show
      On the latest JDK-16 try to test connection or any other LDAP command and the error above will appear in the log.
    • NEW
    • NEW

    Description

      This issue has been reported in the discourse group, however I couldn't find a relevant issue here. I can confirm that using JDK-11, the LDAP federation works fine. For the sake of search visibility, the main error message is:

      ERROR [org.keycloak.services] (default task-4) KC-SERVICES0055: Error 
      when connecting to LDAP: WFLYNAM0027: Failed instantiate 
      InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory from classloader 
      ModuleClassLoader for Module "deployment.keycloak-server.war" from 
      Service Module Loader: javax.naming.NamingException: WFLYNAM0027: Failed
       instantiate InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory from
       classloader ModuleClassLoader for Module 
      "deployment.keycloak-server.war" from Service Module Loader [Root 
      exception is java.lang.IllegalAccessException: class 
      org.jboss.as.naming.InitialContext cannot access class 
      com.sun.jndi.ldap.LdapCtxFactory (in module java.naming) because module 
      java.naming does not export com.sun.jndi.ldap to unnamed module @136178c5]
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            lecrisut Cristian Le (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: