The security logging facilities of the BA Server are set to ERROR by default, which is not always verbose enough for troubleshooting and testing. The below procedure explains how to increase the level of detail in the BA Server logs that deal with security-related messages.
- Stop the BA Server.
- Open the /pentaho/server/biserver-ee/tomcat/webapps/pentaho/WEB-INF/classes/log4j.xml file with a text editor.
- Use XML comments (<!-- -->) to disable all of the Threshold parameters in all of the appender elements.
- Change the priority value in the <root> section to one of: WARN, ERROR, FATAL, or DEBUG, depending on which level you prefer.
<root> <priority value="DEBUG" /> <appender-ref ref="PENTAHOCONSOLE"/> <appender-ref ref="PENTAHOFILE"/> </root>
- Add the following loggers directly above the root element:
<!-- all Spring Security classes will be set to DEBUG --> <category name="org.springframework.security"> <priority value="DEBUG" /> </category> <!-- all Pentaho security-related classes will be set to DEBUG --> <category name="org.pentaho.platform.engine.security"> <priority value="DEBUG" /> </category> <category name="org.pentaho.platform.plugin.services.security"> <priority value="DEBUG" /> </category>
- Save and close the file, then edit the Spring Security configuration file that corresponds with your security back end in the /pentaho/server/biserver-ee/pentaho-solutions/system/ directory.
The file will be one of:
- Find the daoAuthenticationProvider bean definition, and add the following property anywhere inside of it (before the </bean> tag):
<property name="hideUserNotFoundExceptions" value="false" />
- Save the file and close the text editor.
- Start the BA Server.
BA Server security logging is now globally set to DEBUG, which is sufficiently verbose for debugging security configuration problems. All BA Server messages will be collected in the /pentaho/server/biserver-ee/logs/pentaho.log file.
When you are finished configuring and testing the BA Server, you should adjust the log levels down to a less detailed level, such as ERROR, to prevent pentaho.log from growing too large.