Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-68148

Unable to connect to LDAPS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • ldap-plugin
    • None
    • Jenkins 2.332.1
      LDAP Plugin 2.8

      Hello. 

      We are unable to connect to LDAPS, even if TLS certificate is passed  and read correctly in JAVA_OPTS using docker-compose:

      JAVA_OPTS=-Djenkins.install.runSetupWizard=false Djavax.net.ssl.trustStore=/var/jenkins_home/.keystore/cacerts -Djavax.net.ssl.trustStorePassword=changeit -Djavax.net.ssl.keyStore=/var/jenkins_home/.keystore/keystore.jks -Djavax.net.ssl.keyStorePassword=password 

       Using same username/password and parameters  as for LDAP, for LDAPS gives:
       

      Caused: org.springframework.security.authentication.InternalAuthenticationServiceException: [LDAP: error code 32 - Invalid username]; nested exception is javax.naming.AuthenticationException: [LDAP: error code 32 - Invalid username]

       There is no issue while using directly

      ldapsearch

      from Macos (with same parameters and certificate imported) and user details are listed properly, so there is definitely something wrong in terms of plugin/Jenkins.
       
      I would be very grateful for your support. Thank you in advance.
       
       

            Unassigned Unassigned
            jkoziolboombit Jarosław Kozioł
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: