Este conteúdo não está disponível no idioma selecionado.
Chapter 4. Security
4.1. Authentication Copiar o linkLink copiado para a área de transferência!
4.1.1. Authentication Copiar o linkLink copiado para a área de transferência!
4.1.2. Configuring Authentication Copiar o linkLink copiado para a área de transferência!
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>
<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"/>
<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 Copiar o linkLink copiado para a área de transferência!
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"
usr="admin" pwd="admin"Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 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
guvnor.usr=admin guvnor.pwd=adminCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.1.4. Example Authentication: UserRolesLoginModule Copiar o linkLink copiado para a área de transferência!
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:Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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"/><security:identity authenticate- method="#{authenticator.authenticate}" jaas-config-name="brms"/>Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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 Copiar o linkLink copiado para a área de transferência!
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:Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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"/><security:identity authenticate-method="#{authenticator.authenticate}" jaas-config-name="brms"/>Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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.