-
Bug
-
Resolution: Fixed
-
Trivial
-
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.
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-11663Swarm Client fails to connect to Jenkins when Authentication is enabled butAuthorization is diabled
Compare: https://github.com/jenkinsci/swarm-plugin/compare/54bf000...992f491