11 Replies Latest reply on Nov 29, 2011 7:55 AM by Darran Lofthouse

    In jboss-as-7.1.0.Beta1 CLI gets connected without asking for username and password

    Rayan Hacker Newbie

      I have noticed that in the new version of JBoss AS7 (i.e. jboss-as-7.1.0.Beta1) the CLI does not prompt for username and password when I try to connect to a running JBoss server which I believe is a BUG!!!


      Steps to reproduce

      1. Un-commnet admin from the file "<domian or standalone>/configuration/mgmt-users.properties"
      2. Start your JBoss server (i.e. ./domain.sh or ./standalone.sh)
      3. Now run this command   ./jboss-admin.sh --connect


      You would notice that you have been connected to the running JBoss server and that too without any prompt for username and password.


      However in the configuration files (i.e. domin.xml, host.xml and standalone.xml) of jboss-as-7.1.0.Beta1 the default security realm is already activated for native-interface and for http-interface. Where as the http-interface works just fine with we try to open a console it prompts for username and password.