If you are planning to add new users to your management interfaces, then you need use the add-user.sh/add-user.bat file.

The users defined in the management realm are used for the authentication of remote CLI clients. By definition all HTTP access is considered remote, thus if you want to use the Web administration console you will need to define users at first.

This utility requires the following pieces of information for the new user: -

  • Type - You can choose between application users (contained in application-users.properties) and management users (mgmt-users.properties) which is default.
  • Realm - this is the name of the realm used to secure the management interfaces, by default it is 'ManagementRealm' so you can just press enter, if you change the realm as described below this is where you need to enter your new realm name.
  • Username - the username needs to be alpha numeric.
  • Password - At the moment the main restriction on this field is that is can not be the same as the username.

Here's how to add a new Management user.

What type of user do you wish to add?
 a) Management User (mgmt-users.properties)
 b) Application User (application-users.properties)
(a): a

Enter the details of the new user to add.
Realm (ManagementRealm) :
Username : user1234
Password :
Re-enter Password :
About to add user 'user1234' for realm 'ManagementRealm'
Is this correct yes/no? yes
0
0
0
s2smodern

Related articles available on mastertheboss.com

JBoss AS 7 introduction

This is an introduction tutorial to the newest JBoss AS 7 which a

Develop Java EE applications with JBoss AS 7

In this tutorial we will learn how to create and deploy a Java EE

Using JBoss AS 7 management API programmatically

In this tutorial we will show how to use detyped management API t

JNDI view in JBoss AS 7

JNDI can be checked on the naming subsystem of the application se

How to install a module on WildFly / JBoss AS 7

Installing a module on WildFly / JBoss AS 7 requires creating a p

JBoss AS 7 classloading

JBoss AS 7 classloading explained As mandated by Java EE specifi