• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • Win2k8 & Win2k3, Hudson 1.382 and prior, AD plugin 1.16, jdk1.6.0_17

      --username and --password or --password-file options are not usable when trying to use the command line interface with active directory. Receive 'option' not valid error.

      Below link recommened a fix per authentication plugin.
      http://wiki.jenkins-ci.org/display/JENKINS/Hudson+CLI

      "If the CLI reports these are invalid parameters, file an issue for your authentication type and ask them to extend AbstractPasswordBasedSecurityRealm instead of directly from SecurityRealm to get support for these parameters."

      Thanks

          [JENKINS-7995] CLI login & credentials do not work with AD

          VladDRussian created issue -

          VladDRussian added a comment -

          This can be seen with trying to run the login command or adding the credentials to a command when the annoymous user does not have permission. We are using Project-base Matrix security with AD.

          java -jar hudson-cli.jar -s http://localhost login --username <NAME> --password <PASS>
          can also specify '--password-file <fileName>' with the password in plain text inside.

          VladDRussian added a comment - This can be seen with trying to run the login command or adding the credentials to a command when the annoymous user does not have permission. We are using Project-base Matrix security with AD. java -jar hudson-cli.jar -s http://localhost login --username <NAME> --password <PASS> can also specify '--password-file <fileName>' with the password in plain text inside.

          catskul added a comment -

          I can confirm this issue, and am willing to test potential solutions if they are available.

          catskul added a comment - I can confirm this issue, and am willing to test potential solutions if they are available.

          VladDRussian added a comment -

          The link in the desc says this should be able to be resolved by changing what the AD plugin is extending.

          These 4 are the same issue, current ID included.

          http://issues.jenkins-ci.org/browse/JENKINS-7406
          http://issues.jenkins-ci.org/browse/JENKINS-7995
          http://issues.jenkins-ci.org/browse/JENKINS-8188
          http://issues.jenkins-ci.org/browse/JENKINS-8279

          VladDRussian added a comment - The link in the desc says this should be able to be resolved by changing what the AD plugin is extending. These 4 are the same issue, current ID included. http://issues.jenkins-ci.org/browse/JENKINS-7406 http://issues.jenkins-ci.org/browse/JENKINS-7995 http://issues.jenkins-ci.org/browse/JENKINS-8188 http://issues.jenkins-ci.org/browse/JENKINS-8279
          Alan Harder made changes -
          Link New: This issue is duplicated by JENKINS-8279 [ JENKINS-8279 ]
          Alan Harder made changes -
          Link New: This issue is duplicated by JENKINS-8188 [ JENKINS-8188 ]
          Alan Harder made changes -
          Link New: This issue is duplicated by JENKINS-7406 [ JENKINS-7406 ]
          Alan Harder made changes -
          Link New: This issue is related to JENKINS-6628 [ JENKINS-6628 ]

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          src/main/java/hudson/plugins/active_directory/AbstractActiveDirectoryAuthenticationProvider.java
          src/main/java/hudson/plugins/active_directory/ActiveDirectoryAuthenticationProvider.java
          src/main/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.java
          src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java
          http://jenkins-ci.org/commit/active-directory-plugin/26b7a72dd7f1ae2f0e5d791b39dfb612d9d175ea
          Log:
          JENKINS-7995 Extending from AbstractPasswordBasedSecurityRealm to benefit from uniform CLI authentication.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: src/main/java/hudson/plugins/active_directory/AbstractActiveDirectoryAuthenticationProvider.java src/main/java/hudson/plugins/active_directory/ActiveDirectoryAuthenticationProvider.java src/main/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.java src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java http://jenkins-ci.org/commit/active-directory-plugin/26b7a72dd7f1ae2f0e5d791b39dfb612d9d175ea Log: JENKINS-7995 Extending from AbstractPasswordBasedSecurityRealm to benefit from uniform CLI authentication.

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          src/main/java/hudson/plugins/active_directory/AbstractActiveDirectoryAuthenticationProvider.java
          src/main/java/hudson/plugins/active_directory/ActiveDirectoryAuthenticationProvider.java
          src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java
          http://jenkins-ci.org/commit/active-directory-plugin/4aa2ca82f7e25a9178072886e3564860f12cc97c
          Log:
          JENKINS-7995 pulled up a member

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: src/main/java/hudson/plugins/active_directory/AbstractActiveDirectoryAuthenticationProvider.java src/main/java/hudson/plugins/active_directory/ActiveDirectoryAuthenticationProvider.java src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java http://jenkins-ci.org/commit/active-directory-plugin/4aa2ca82f7e25a9178072886e3564860f12cc97c Log: JENKINS-7995 pulled up a member

            Unassigned Unassigned
            vladdrussian VladDRussian
            Votes:
            8 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: