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

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Activity

          nicholasphall Nicholas Hall created issue -
          sogabe sogabe made changes -
          Field Original Value New Value
          Assignee Kohsuke Kawaguchi [ kohsuke ] sogabe [ sogabe ]

          Code changed in jenkins
          User: Seiji Sogabe
          Path:
          client/src/main/java/hudson/plugins/swarm/Client.java
          http://jenkins-ci.org/commit/swarm-plugin/992f49199868f0e9d8698aa48a93428b177eb018
          Log:
          JENKINS-11663 Swarm Client fails to connect to Jenkins when Authentication is enabled but
          Authorization is diabled

          Compare: https://github.com/jenkinsci/swarm-plugin/compare/54bf000...992f491

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Seiji Sogabe Path: client/src/main/java/hudson/plugins/swarm/Client.java http://jenkins-ci.org/commit/swarm-plugin/992f49199868f0e9d8698aa48a93428b177eb018 Log: JENKINS-11663 Swarm Client fails to connect to Jenkins when Authentication is enabled but Authorization is diabled Compare: https://github.com/jenkinsci/swarm-plugin/compare/54bf000...992f491
          dogfood dogfood added a comment -

          Integrated in plugins_swarm #33
          JENKINS-11663 Swarm Client fails to connect to Jenkins when Authentication is enabled but (Revision 992f49199868f0e9d8698aa48a93428b177eb018)

          Result = SUCCESS
          Seiji Sogabe :
          Files :

          • client/src/main/java/hudson/plugins/swarm/Client.java
          dogfood dogfood added a comment - Integrated in plugins_swarm #33 JENKINS-11663 Swarm Client fails to connect to Jenkins when Authentication is enabled but (Revision 992f49199868f0e9d8698aa48a93428b177eb018) Result = SUCCESS Seiji Sogabe : Files : client/src/main/java/hudson/plugins/swarm/Client.java
          sogabe sogabe made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]

          closing

          mindjiver Peter Jönsson added a comment - closing
          mindjiver Peter Jönsson made changes -
          Assignee sogabe [ sogabe ] Peter Jönsson [ mindjiver ]
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 141906 ] JNJira + In-Review [ 205465 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved: