Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-9250

Elytron Client with Management CLI still prompts for password

XMLWordPrintable

      When using an elytron client config with the management cli script, script still prompts for password despite being set in the file.

      for example:

      custom-config.xml

      <configuration>
          <authentication-client xmlns="urn:elytron:1.0">
              <authentication-rules>
                  <rule use-configuration="configuration1">
                      <match-host name="localhost" />
                  </rule>
                  <rule use-configuration="configuration1">
                      <match-host name="127.0.0.1" />
                  </rule>
             </authentication-rules>
              <authentication-configurations>
                  <configuration name="configuration1">
                      <allow-sasl-mechanisms names="DIGEST-MD5" />
                       <use-service-loader-providers />
                       <set-user-name name="user1" />
                       <credentials>
                           <clear-password password="password123" />
                       </credentials>
                       <set-mechanism-realm name="exampleManagementRealm" />
                   </configuration>
              </authentication-configurations>
          </authentication-client>
      </configuration>
      

      command and output

      $ ./jboss-cli.sh -Dwildfly.config.url=/path/to/custom-config.xml --controller=remote+http://localhost:9990 --no-local-auth -c
      
      Authenticating against security realm: exampleManagementRealm
      Username:
      

            rhn-cservice-bbaranow Bartosz Baranowski
            zrhoads Zach Rhoads (Inactive)
            Martin Svehla Martin Svehla
            Martin Svehla Martin Svehla
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: