Unable to connect to LDAPS

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.
       
       

            Assignee:
            Unassigned
            Reporter:
            Jarosław Kozioł
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: