此内容没有您所选择的语言版本。
Chapter 3. User Authorization
3.1. Enabling Role-Based Authorization 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
JBoss BRMS uses role-based authorization to assign user permissions. Role-based authorization is disabled by default and all users have full administrative permissions.
Procedure 3.1. Enable Role-Based Authorization
- Before enabling role-based authorization, it is necessary to assign one trusted user the admin role.
- From the JBoss Enterprise BRMS web user interface navigation panel, select
. - Click Create new user mapping and enter the name of the user to be granted Admin permissions. Note, this user must already exist in the
brms-users.propertiesfile. - Click Open next to the username whose permissions are being changed.
- Click the plus icon to add permissions, and select admin, click OK, and click Save changes.After the system has saved the changes Yes will be displayed under Administrator.
- Shut down the application server before making these changes.
- Open the
jboss-as/server/production/deploy/jboss-brms.war/WEB-INF/components.xmlfile in a text editor. - In the default
components.xmlfile, locate the following code and replacefalsewith true:<component name="org.jboss.seam.security.roleBasedPermissionResolver"> <property name="enableRoleBasedAuthorization">false</property> </component>Note
In versions 5.1 and earlier, locate and edit the following XML replacing false with true:<security:role-based-permission-resolver enable-role-based-authorization="false"/< - Restart the application server.
- Log back into the BRMS web user interface. From the navigation panel, select
and assign users roles as required. - Click Open next to the username whose permissions are being changed. Select the required role for the user, click OK, and click Save changes.
Note
Users can be assigned more than one role.Users assigned the admin role can modify the roles and permissions of other users.