• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • other
    • None
    • Platform: All, OS: All

      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 ?)

          [JENKINS-1138] Bad redirect after LDAP login

          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.

          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.

          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.

          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.

          Thanks. Fixed in 1.169.

          Kohsuke Kawaguchi added a comment - Thanks. Fixed in 1.169.

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

              Created:
              Updated:
              Resolved: