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

Hudson JNLP slave start with form based authentication

XMLWordPrintable

    • Icon: Patch Patch
    • Resolution: Unresolved
    • Icon: Major Major
    • remoting
    • None
    • Hudson master deployed in a container using matrix based container authentication denying anonymous read permission.

      We need to use Glassfish on which we deployed Hudson. We also using a separate realm and authenticator in Glassfish to authenticate/authorize Hudson users. We are quite happy with this solution. Unfortunately with the first windows slave (we need for build and Selenium) we had some trouble. We are using JNLP slave, but it seems the slave can use only HTTP Basic authentication, so we had to enable read access to anonymous user, so slave is up and running. Unfortunately having anonymous read enabled our Hudson links we send out will result a 404 error if the user has been not logged in yet.

      I wrote a patch which tries to authenticate the slave using either HTTP Basic or Form based authentication. It is working for us, however we haven't tested it using HTTP Basic authentication.

      I'd be glad if someone could review my patch!

            kohsuke Kohsuke Kawaguchi
            lkishalmi lkishalmi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: