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

Bad redirect after LDAP login

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: other
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      I just upgraded to 1.166 and tried the new LDAP option.. I already have LDAP
      configured in my container (SJSWS7) but wanted to try the new feature in 1.166.
      When I login using container auth, it works and goes to the main page. When I
      change to Hudson's LDAP option, the login works but I am redirected to
      server/hudson/hudson intead of just /hudson (maybe some relation here to issue
      #1111 ?)

        Attachments

          Activity

          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Thanks. Fixed in 1.169.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Thanks. Fixed in 1.169.
          Hide
          mindless Alan Harder added a comment -

          I'm on the main page, the login link has URL:
          http://gssie-210-6.central/hudson/login?from=/hudson/
          After I click login then it goes to:
          http://gssie-210-6.central/hudson/hudson/

          When auth is configured to delegate to the container then the login link has:
          http://gssie-210-6.central/hudson/loginEntry?from=/hudson/

          I tried using the loginEntry URL with LDAP auth configured, but that just
          redirects to the main page (side note: if you enter the wrong password when
          logging in, the "Try again" link points to loginEntry, so it redirects to main
          page instead of showing login form again).

          I tried using the login URL with without the ?from=.. part, this works fine.

          Show
          mindless Alan Harder added a comment - I'm on the main page, the login link has URL: http://gssie-210-6.central/hudson/login?from=/hudson/ After I click login then it goes to: http://gssie-210-6.central/hudson/hudson/ When auth is configured to delegate to the container then the login link has: http://gssie-210-6.central/hudson/loginEntry?from=/hudson/ I tried using the loginEntry URL with LDAP auth configured, but that just redirects to the main page (side note: if you enter the wrong password when logging in, the "Try again" link points to loginEntry, so it redirects to main page instead of showing login form again). I tried using the login URL with without the ?from=.. part, this works fine.
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Can you elaborate on steps that you took and the page transitions that you had?

          In particular, please tell me from which page you clicked "login" link, and the
          link target of the login link. Please describe every step in reproducing the
          problem, so that I can see where it starts to fall down.

          I did a few quick testing (like by going to the login page from the top Hudson
          page), and that worked correctly, so this bug must depend on how you started
          authentication.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Can you elaborate on steps that you took and the page transitions that you had? In particular, please tell me from which page you clicked "login" link, and the link target of the login link. Please describe every step in reproducing the problem, so that I can see where it starts to fall down. I did a few quick testing (like by going to the login page from the top Hudson page), and that worked correctly, so this bug must depend on how you started authentication.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            mindless Alan Harder
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: