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

unable to log in via LDAP but retry is successful

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ldap-plugin
    • running as jar using winstone server

      We are using LDAP authentication.

      When user tries to log in, there is a long pause, perhaps 30 seconds, then user receives an error that they could not log in. A second attempt is always successful.

      I did some tracking, and discovered this was an issue in an old Tomcat release. The issue for Tomcat is that the LDAP connection would time out and become unusable. When the user got the error, Tomcat would delete the connection, and a new attempt to login caused a new connection to LDAP to be created and login was successful. Tomcat solved the problem by detecting the timeout, and automatically dropping the connection and starting a new connection. The user still sees the delay, but does not have to enter credentials a second time.

      Using Jenkins (and previously Hudson) with LDAP has the same issue. I verified that the issue does not exist if I run Jenkins as a war in a Tomcat container. It would be nice if the winstone container could pick up the fix that the Tomcat team used.

          [JENKINS-10349] unable to log in via LDAP but retry is successful

          Oleg Nenashev added a comment -

          Assigned the issue to a proper component

          Oleg Nenashev added a comment - Assigned the issue to a proper component

          Oleg Nenashev added a comment -

          In order to set proper expectation, I have unassigned Kohsuke from this tickets.
          Currently there is no Default assignee in the LDAP plugin, any contributions will be appreciated.

          Oleg Nenashev added a comment - In order to set proper expectation, I have unassigned Kohsuke from this tickets. Currently there is no Default assignee in the LDAP plugin, any contributions will be appreciated.

            Unassigned Unassigned
            roostergx Michael Giroux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: