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

CLI access cause NPE when using LDAP users

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • cli, ldap-plugin
    • None

      We are issuing calls to the Jenkins CLI using ssh keys as authentication. If we set Jenkins up with an internal user database, it identifies the user and works properly. If we use LDAP to set up the users database, the cli call cause a NPE. This worked on 1.574, but is broken on 1.576. The call and response is:

      java -jar jenkins-cli.jar -s http://sandbox-jenkins.locationlabs.com:8080 who-am-i
      Exception in thread "main" java.io.EOFException
      at java.io.DataInputStream.readBoolean(DataInputStream.java:227)
      at hudson.cli.Connection.readBoolean(Connection.java:93)
      at hudson.cli.CLI.authenticate(CLI.java:560)
      at hudson.cli.CLI._main(CLI.java:471)
      at hudson.cli.CLI.main(CLI.java:382)

            kohsuke Kohsuke Kawaguchi
            cmolinari Carl Molinari
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: