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

Swarm Client fails to connect to Jenkins when Authentication is enabled but Authorization is diabled

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • swarm-plugin
    • None

      We have enabled LDAP authentication for Jenkins, but do not have authorization enabled ('Anyone can do anything').

      We do not pass a username or password for the swarm clients. This results in a 401 during the jnlp connection phase.

      I've attached a very simple code change to hudson.plugins.swarm.Client.java that works in our environment. Under the condition that a username and password aren't available, do not add the '-credential' switch to the Main args.

          [JENKINS-11663] Swarm Client fails to connect to Jenkins when Authentication is enabled but Authorization is diabled

          Nicholas Hall created issue -
          sogabe made changes -
          Assignee Original: Kohsuke Kawaguchi [ kohsuke ] New: sogabe [ sogabe ]
          sogabe made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Peter Jönsson made changes -
          Assignee Original: sogabe [ sogabe ] New: Peter Jönsson [ mindjiver ]
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 141906 ] New: JNJira + In-Review [ 205465 ]

            mindjiver Peter Jönsson
            nicholasphall Nicholas Hall
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: