Hudson CLI returns "--username is not a valid option" when using the CLI login command

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      When using the Hudson CLI (with the server configured to use the ActiveDirectory plugin for authentication, the following syntax CLI command results in an error as shown below:

      command tried:
      java -jar hudson-cli.jar -s http://<hudson_server>/ login --username <my_admin_login> --password <my_admin_password>

      results in:
      "--username=<my_admin_login>" is not a valid option
      java -jar hudson-cli.jar login args...
      Saves the current credential to allow future commands to run without explicit credential information

      Apparently, this bug in the LDAP authenticator has already been resolved, but still seeing this behavior in the ActiveDirectory plugin: http://issues.jenkins-ci.org/browse/JENKINS-6628?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
      Supposedly, extending AbstractPasswordBasedAuthentication in the security realm class should fix it.

            Assignee:
            Unassigned
            Reporter:
            RCobb1
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: