Adding users
After the groups are created, create the users and add them to the groups.
Procedure
- At the bottom of the Home Page of
the WebLogic Server administration
console, click Security Realms.
If you are just finished creating groups on the Settings for myrealm page, you do not have to go back to the Home Page: just click the Users tab (step 3).
- In the Summary of Security Realms page, under Realms click myrealm.
- In the Settings for myrealm page, click the Users and Groups tab and then click Users.
- In the Users table, click New.
- In the Create a New User page, enter resAdmin for
the name and a password with a minimum of 8 characters and one digit
(such as resAdmin1). Important:
The user names must be an exact match of the strings resAdmin, resDeployer, and resMonitor because the weblogic.xml file defines these strings in the security role assignments. You can find the weblogic.xml file in the jrules-res-management-WLXX.ear/jrules-res-management.war/WEB-INF/ directory.
<weblogic-web-app .......> <security-role-assignment> <role-name>resAdministrators</role-name> <principal-name>resAdmin</principal-name> </security-role-assignment> <security-role-assignment> <role-name>resDeployers</role-name> <principal-name>resDeployer</principal-name> </security-role-assignment> <security-role-assignment> <role-name>resMonitors</role-name> <principal-name>resMonitor</principal-name> </security-role-assignment> ... </weblogic-web-app>If you want to change the user name, you can change the principal-name in the weblogic.xml file.
If you want different names but do not want to change the deployment descriptor, you can select Custom Roles as the security model when you deploy the Rule Execution Server management console application.
- Confirm the password and click OK.
The User created successfully message is displayed and the resAdmin user is listed in the Users table.
- In the Name column, click resAdmin to open the Settings for resAdmin page.
- Click the Groups tab.
Now, to add members to the resAdministrators group, you must add the group to the user definition.
- Under Parent Groups, scroll down to select resAdministrators in the Available column and click the arrow to move resAdministrators to the Chosen column.
- Click Save.
These instructions do not apply if you are deploying Rule Execution Server on a WebLogic Server cluster and you have enabled the administration port on your management server. In this case, it is not possible to remove the link between the resAdmin user and the Administrators group.
Note:You can reassign the user name for the Rule Execution Server console in WebLogic Server. To do so, edit the weblogic.xml file in jrules-res-management-WLXX.war and create a new user with the same name in the WebLogic Server administration console.
- Repeat steps 4 through 10 to create the users and add them
to the groups as shown in the following table.
User Password Groups resMonitor resMonitor1 resMonitors resDeployer resDeployer1 resDeployers resAdmin resAdmin1 resAdministrators, Administrators
What to do next
If you want to give the resDeployer and resMonitor users the rights to run Rule Execution Server diagnostics, see Allowing non-administrators to run diagnostics for instructions.