Chapter 4. Security
4.1. Authentication
4.1.1. Authentication
4.1.2. Configuring Authentication
jboss-brms.war/WEB-INF/components.xml file. The default configuration has many "commented out" options but the actual settings look like this:
<security:identity authenticate-method="#{authenticator.authenticate}" jaas-config-name="jmx-console"/>
<component name="org.jboss.seam.security.roleBasedPermissionResolver">
<property name="enableRoleBasedAuthorization">false</property>
</component>
Note
<security:identity authenticate-method="#{authenticator.authenticate}" jaas-config-name="jmx-console"/>
<security:role-based-permission-resolver enable-role-based-authorization="false"/>Important
jmx-console authentication policy. Red Hat recommends editing this policy to tailor it for your specific environment.
- Edit the appropriate JBoss login module of the application server.
- Configure the JBoss Enterprise BRMS Platform to use that module.
Note
Warning
4.1.3. Password Configuration for JAAS
brms-users.properties file, they also need to be synchronized for the Process Designer and Business Central Console.
Procedure 4.1. Synchronizing Usernames and Passwords
- Process Designer: To edit the usernames and passwords for the Process Designer, which is a separate application integrated with JBoss Enterprise BRMS, open the
designer.war/profiles/jbpm.xmlfile and edit theusrandpwdproperties:usr="admin" pwd="admin"
- Business Central Console. To edit the usernames and passwords for the Business Central Console, open the
business-central-server.war/WEB-INF/classes/jbpm.console.propertiesfile and edit theguvnor.usrandguvnor.pwdproperties:guvnor.usr=admin guvnor.pwd=admin
4.1.4. Example Authentication: UserRolesLoginModule
org.jboss.security.auth.spi.UsersRolesLoginModule login module to access a set of user accounts stored in the props/brms-users.properties and props/brms-roles.properties files.
Procedure 4.2. Authentication Example: UserRolesLoginModule
Ensure the Authentication System is Configured Correctly
This login module uses two files to store the login name, password, and roles assigned to each user. Create thebrms-users.propertiesandbrms-roles.propertiesfiles in thejboss-as-web/server/PROFILE/conf/props/directory and then specify at least one user inbrms-users.propertiesusing this format:username=password. (thebrms-roles.propertiesfile can be left empty.)Shut Down
Shut down the application server before making these changes.Configure the JBoss Login Module
To configure the JBoss Login Modules, openjboss-as-web/server/PROFILE/conf/login-config.xmlin a text editor. It is an XML file containing a<policy>element with several<application-policy>child elements. Each<application-policy>element defines a different authentication scheme. Add the following<application-policy>XML snippet as a new child of the<policy>element:<!--BRMS Platform Security Domain--> <application-policy name="brms"> <authentication> <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag="required"> <module-option name="usersProperties"> props/brms-users.properties </module-option> <module-option name="rolesProperties"> props/brms-roles.properties </module-option> </login-module> </authentication> </application-policy>Configure the BRMS Platform to use the Login Module
Open thejboss-as-web/server/PROFILE/deploy/JBoss-BRMS.war/WEB-INF/components.xmlfile. It contains one<components>element with several child elements, including<security:identity>.Comment out the existing<security:identity>elements to prevent conflicts. Add the following<security:identity>element:<security:identity authenticate- method="#{authenticator.authenticate}" jaas-config-name="brms"/>The jaas-config-name property must be the same as the application-policy. If the application-policy property was changed in the previous step, modify the jaas-config-name property here to match.Restart
Restart the application server.
4.1.5. Example Authentication: LDAP
Procedure 4.3. Authentication Example Two: LDAP
Ensure the LDAP Server is Configured Correctly
Check that firewall and network configuration settings are not preventing communication between the application server and the LDAP server.Shut Down
Shut down the application server before making these changes.Configure the JBoss Login Module
To configure the JBoss Login Modules, openjboss-as-web/server/PROFILE/conf/login-config.xmlin a text editor. It is an XML file containing a<policy>element with several<application-policy>child elements. Each<application-policy>element defines a different authentication scheme. Add the following<application-policy>XML snippet as a new child of the<policy>element:<application-policy name="brms"> <authentication> <login-module code="org.jboss.security.auth.spi.LdapExtLoginModule" flag="required" > <module-option name="java.naming.provider.url"> ldap://ldap.company.com:389 </module-option> <module-option name="bindDN">DEPARTMENT\someadmin</module-option> <module-option name="bindCredential">password</module-option> <module-option name="baseCtxDN">cn=Users,dc=company,dc=com </module-option> <module-option name="baseFilter">(sAMAccountName={0})</module-option> <module-option name="rolesCtxDN">cn=Users,dc=company,dc=com </module-option> <module-option name="roleFilter">(sAMAccountName={0})</module-option> <module-option name="roleAttributeID">memberOf</module-option> <module-option name="roleAttributeIsDN">true</module-option> <module-option name="roleNameAttributeID">cn</module-option> <module-option name="roleRecursion">-1</module-option> <module-option name="searchScope">ONELEVEL_SCOPE</module-option> </login-module> </authentication> </application-policy>Update the values in this configuration file with those appropriate for your LDAP server.Configure the BRMS Platform to use the Login Module
Open thejboss-as-web/server/PROFILE/deploy/jboss-brms.war/WEB-INF/components.xmlfile. It contains one<components>element with several child elements, including<security:identity>.Comment out the existing<security:identity>elements to prevent conflicts. Add the following<security:identity>element:<security:identity authenticate-method="#{authenticator.authenticate}" jaas-config-name="brms"/>The jaas-config-name property must be the same as the application-policy. If the application-policy property was changed in the previous step, modify the jaas-config-name property here to match.Restart
Restart the application server.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.