3 Replies Latest reply on Oct 19, 2012 2:42 PM by Peter Johnson

    Setting a new password for admin on Jboss 5.1

    Darko Hojnik Newbie

      Hi there,

       

      I've running Jboss 5.1 on FreeBSD using a database on PostgreSQL for DefaultDS. That's running fine.

       

      But how could I set an new password for the user admin inside the admin-panel? I didn't find something inside the database and changing the file web-console-users.properties has no result.

       

      cheers Darko

        • 1. Re: Setting a new password for admin on Jboss 5.1
          Peter Johnson Master

          What do you mean by admin-panel? Did you mean admin-console? If so, what security-domain is set in admin-console/WEB-INF/jboss-web.xml? How to change the admin password depends on what that security domain is.

          • 2. Re: Setting a new password for admin on Jboss 5.1
            Alberto Megía Newbie

            Peter Johnson escribió:

             

            What do you mean by admin-panel? Did you mean admin-console? If so, what security-domain is set in admin-console/WEB-INF/jboss-web.xml? How to change the admin password depends on what that security domain is.

            Hi! Peter, could you please explain that?

             

            I need to change admin pass without change any configuration files... can I do that by admin-console?

             

            I know that I can edit the file jm x-console-users.properties in the directory JBOSS_HOME/server/PROFILE/conf/props/ but I would like to avoid it...

            My security-domain is:

             

            <security-domain>java:/jaas/jmx-console</security-domain>

             

            Thx a lot!

            Alberto

            • 3. Re: Setting a new password for admin on Jboss 5.1
              Peter Johnson Master

              You have chosen to use a security domain where account info is stored in a text file. The only way to change the account info is to edit the text file. If you want to change account info via a user inetrface, you will have to pick a different authenication mechanism, perhaps using a database or ldap. No matter which mechanism you pick, you will have to write the UI to modify the account information, there is nothing in the admin-console to do this (from what I can remember, it's be a while since I looked at it).