Use the CSI tool to debug security profile errors that are encountered during user authentication.
Use the CSI tool to debug authentication failures and validate your security configuration outside the SAP Mobile Platform environment.
CSI uses Java logging API. The following example shows how to configure logging.properties to obtain FINEST level log messages from the classes in the com.sap.security.ldap package while setting the log level for rest of the CSI classes to INFO. Use this configuration to debug authentication failures with LDAP providers. You can also use this configuration to debug errors encountered when looking up user roles from the LDAP repository. The value debug.log for the property java.util.logging.FileHandler.pattern should be the path to the log file.
java -Djava.util.logging.config.file=logging.properties -jar csi-tool.jar csi.diag.authenticate --USERNAME "test_username" --PASSWORD "test_password" --CONFIG_FILE "absolute_path_of_the_configuration_xml_file"
where logging.properties contains:
handlers=java.util.logging.ConsoleHandler, java.util.logging.FileHandler.level=INFO com.sap.security.ldap.level=FINEST java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter java.util.logging.FileHandler.level=FINEST java.util.logging.FileHandler.pattern=debug.log