Create a new user
OpenESB web admin console users are stored in the following file ${OESE-HOME}\OE-Instance\config\mgmt- users.properties.
Login and password are stored in users.properties file. Passwords are encrypted for obvious security purposes. So, the administrator can provide access to the console to new users by adding new properties in this file.
You can use any other properties files to store the users and their password. The properties file used by OpenESB is defined in the ${OESE-HOME}\OE-Instance\config\openesb.yaml.
Let's add a new user "test" with the password "test". In the mgmt.-users.properties file, add the user
test:
user.admin = B036OM7c+CCnxY9kw3vorFJpIAR0FXglWREVSPPz30Y=
user.test = RXRFmgXzdTELrvtsvj10hQ==
To encrypt the password, OpenESB proposes you a simple tool to it. This tool is the java class
PasswordManagement found in jar file ${OESE-HOME}\OE-Instance\lib\openesb-standalone-container-xxxxxx, where xxxxx is the version or the build number.
Open a console and execute the following command where my_password is the password you want to encrypt:
java -cp lib/openesb-standalone-container-xxxxx.jar
net.openesb.standalone.security.utils.PasswordManagement my_password
Copy and paste the password to the properties files. Save the file, reset OpenESB instance to take into account the new user. OpenESB offers an option to avoid an OpenESB reset. To do it, add the options reload and interval in the file ${OESE-HOME}\OEInstance\config\openesb.yaml as display below.