7 Replies Latest reply on Oct 29, 2012 8:49 AM by dlofthouse

    Access JBoss Console with a PropertiesMgmtSecurityRealm realm

    lauradp

      Hello everybody I created an user with credential {user, password} whith the PropertiesMgmtSecurityRealm and I stared a Jboss AS server with the attached configuration file.

       

      When I type http://localhost:9990/console/App.html to access the JBoss Management console I cannot access the management page because the system asks many time the user's credentials even after I have typed them.

       

      Can any one help me??

       

      My goal is to access with the same user to JBoss management page and jbpm console and to configure the server to run with both jms (HornetQ) and jbpm.

       

      Thanks in advance

       

      Laura

        • 1. Re: Access JBoss Console with a PropertiesMgmtSecurityRealm realm
          pankajsewalia

          Hi Laura

           

          <Laura>

          When I type http://localhost:9990/console/App.html to access the JBoss Management console I cannot access the management page because the system asks many time the user's credentials even after I have typed them.

          </Laura>

           


          <pankaj>

          Realm is default : ManagementRealm

          1. stop server

          2. change following code in  add-user.bat(Windows)

               if "x%JAVA_HOME%" == "x" (

                 set  "JAVA=java"

                 echo JAVA_HOME is not set. Unexpected results may occur.

                 echo Set JAVA_HOME to the directory of your local JDK to avoid this message.

               ) else (

                 set "JAVA=%JAVA_HOME%\bin\java" 

               )

           

               to

           

           

               if "x%JAVA_HOME%" == "x" (

                 set  "JAVA=D:\Program Files\Java\jre7\bin\java" # path of your jdk

                 echo JAVA_HOME is not set. Unexpected results may occur.

                 echo Set JAVA_HOME to the directory of your local JDK to avoid this message.

               ) else (

                 set "JAVA=%JAVA_HOME%\bin\java" 

               )

          3. start server

          4. now login with your new cred. , http://localhost:9990/console/App.html will work fine

           

          </pankaj>

           

          Message was edited by: pankaj sewalia

          • 2. Re: Access JBoss Console with a PropertiesMgmtSecurityRealm realm
            sfcoy

            Laura delli Paoli wrote:

             

            ...

             

            When I type http://localhost:9990/console/App.html to access the JBoss Management console I cannot access the management page because the system asks many time the user's credentials even after I have typed them.

             

            ...

             

            Are you using the Apple Safari web browser? I've noticed this problem in Safari too and it's a real PITA. Consequently I don't use this browser when using the JBoss Management Console anymore.

            • 3. Re: Access JBoss Console with a PropertiesMgmtSecurityRealm realm
              pankajsewalia

              Stephen

               

              Dont u think this is not something from browser..well! i didn't tested it at safari, but after adding a user ..if it is not allowing you to login with specified login cred. then there might be something wrong with the "add-user.bat",well we can check the %JBOSS HOME%\standalone\configuration\mgmt-users.properties...there might an entry for new user like

               

              By default the properties realm expects the entries to be in the format: -

              username=HEX( MD5( username ':' realm ':' password))

               

              so its make entry like "admin=2a0923285184943425d1f53ddd58ec7a" in mgmt-users.properties

               

              After run the script  "add-user.bat" ...its make an entry in mgmt-users.properties with repect to username and "HEX( MD5( username ':' realm ':' password))"

              i had same problem after adding the user it was asking me for login cred. always.. then set the %JAVAHOME% inside script "bin\add-user.bat..and now its working fine.

               

              Message was edited by: pankaj sewalia

              • 4. Re: Access JBoss Console with a PropertiesMgmtSecurityRealm realm
                sfcoy

                Pankaj,

                pankaj sewalia wrote:

                 

                stephen

                dont u think this is not something from browser..well! ...

                This is definitely browser related in my case. The same credentials work in Firefox, but Safari is always asking for username/password whenever you click on something.

                 

                Other WebKit based browsers may have the same problem (but I've not checked it myself).

                • 5. Re: Access JBoss Console with a PropertiesMgmtSecurityRealm realm
                  dlofthouse

                  Which AS version are you talking about here?  The name became 'ManagementRealm' for the realm instead of 'PropertiesMgmtSecurityRealm' quite a while ago so advice related to the most recent version may not be applicable here.

                   

                  And for anyone experiencing an issue with Safari we have the following open issue however attempts to reproduce have so far been unsuccessfull: -

                   

                  https://issues.jboss.org/browse/AS7-5758

                   

                  If you are experiencing an issue with Safari we would really like to see attached to the Jira issue the related standalone.xml configuration, the properties file containing the defined user and a network trace showing the network packets between the web browser and the server.

                  • 6. Re: Access JBoss Console with a PropertiesMgmtSecurityRealm realm
                    sfcoy

                    Done. Let me know what else I can do to help.

                    • 7. Re: Access JBoss Console with a PropertiesMgmtSecurityRealm realm
                      dlofthouse

                      Thank you Stephen, I will check through your attachments and see if I can see what is triggering the re-authentication.