Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-4667

CLI authentication fails when --command is used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 10.0.0.Alpha1
    • CLI
    • None

    Description

      Description of problem:
      CLI is unable to use --command argument, when authentication is used

      How reproducible:
      Always

      Steps to Reproduce:
      1. cd bin
      2. ./standalone.sh &
      ./jboss-cli.sh -c command=/core-service=management/security-realm=ApplicationRealm/authentication=local:remove
      ./jboss-cli.sh -c command=/core-service=management/security-realm=ManagementRealm/authentication=local:remove
      ./jboss-cli.sh -c command=:shutdown
      3. cd ..
      4. echo "bob=81ce18184f7b1095a367d5fae624ac15" >> standalone/configuration/mgmt-users.properties
      5. ./bin/standalone.sh &
      6. ./bin/jboss-cli.sh -c --command=':shutdown'

      Actual results:
      Authenticating against security realm: ManagementRealm
      Failed to connect to the controller: Unable to authenticate against controller at localhost:9990: Authentication failed: all available authentication mechanisms failed:
      DIGEST-MD5: java.lang.NullPointerException

      Expected results:
      manually set login information (bob, admin123@) and ":shutdown" command will be executed

      Additional info:
      These commands are working correctly:
      6. ./bin/jboss-cli.sh -c
      7. bob
      admin123@
      :shutdown
      exit

      Attachments

        Issue Links

          Activity

            People

              olubyans@redhat.com Alexey Loubyansky
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: