To configure Web resource authentication to correspond with your user roles in the Pentaho Server, perform the following instructions.
These instructions are valid across all security data access objects (DAOs).
- Ensure that the Pentaho Server is not currently running; if it is, run the
- Open a terminal or command prompt window and navigate to the .../pentaho-solutions/system/ directory.
- Edit the
applicationContext-spring-security.xmlfile with a text editor.
- Find and examine the following property:
- Modify the regex patterns to include your roles. The
objectDefinitionSourceproperty associates URL patterns with roles.
RoleVoterspecifies that if any role on the right hand side of the equals sign is granted to the user, the user may view any page that matches that URL pattern. The default roles in this file are not required. You can replace, delete, or change them in any way that suits you.
You should now have coarse-grained permissions established for user roles.