Logging LDAP/AD in CTP
CTP integrates with LDAP/AD through a module called PSTSec. In order to obtain logging information when configuring integration you need to enable some things in PSTSec. The logging for PSTSec is controlled by the XML file located under “pstsec/WEB-INF/log_config.xml”.
This file provides the following instructions for enabling PSTSec debug logging:
To enable this logging you need to define two JAVA properties when starting CTP:-Dcom.parasoft.xtest.logging.config.file=<PATH TO LOG_CONFIG.XML> -Dlogs.dir=:<PATH_TO_PLACE_WHERE_THE_LOG_FILE_WILL_BE_STORED>
Comments
-
I have attached the default logging properties file found in pstsec/WEB-INF/log_config.xml. You need to modify it to look like this.
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <appender name="FILE" class="org.apache.log4j.RollingFileAppender"> <param name="MaxBackupIndex" value="10"/> <param name="MaximumFileSize" value="50000000"/> <param name="File" value="${logs.dir}/pstsec.log"/> <param name="Append" value="true"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="* %d %-5p %C{1}.%M():%L%n %m%n"/> </layout> </appender> <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> <param name="Threshold" value="all"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="* %d %-5p %C{1}.%M():%L%n %m%n"/> </layout> </appender> <!-- Uncomment Below --> <logger name="org.springframework.jdbc"> <level value="DEBUG"/> <appender-ref ref="FILE"/> </logger> <!-- Then add this section below --> <logger name="com.parasoft.pst.security.core.PSTSecCoreLogger" additivity="false"> <level value="DEBUG"/> <appender-ref ref="FILE"/> </logger> <!-- End of the new section --> <root> <priority value="DEBUG"/> <appender-ref ref="FILE"/> </root> </log4j:configuration>
0