Difference between revisions of "Active Directory"
From OpenKM Documentation
(→Enable debug on login process) |
|||
Line 6: | Line 6: | ||
== Enable debug on login process == | == Enable debug on login process == | ||
+ | === OpenKM 6.2 - Tomcat === | ||
+ | Edit the log4j configuration file located at '''$TOMCAT_HOME/conf/log4j.properties''' and add: | ||
+ | |||
+ | <source lang="java"> | ||
+ | log4j.logger.org.springframework.security=DEBUG | ||
+ | </source> | ||
+ | |||
+ | === OpenKM 5.1 - JBoss === | ||
It's good practice to enable login debugging when you make any change to the authentication mechanism. Edit the file /server/default/conf/jboss-log4j.xml and add the category ( remember you must restart jboss for it to take effect ): | It's good practice to enable login debugging when you make any change to the authentication mechanism. Edit the file /server/default/conf/jboss-log4j.xml and add the category ( remember you must restart jboss for it to take effect ): | ||
<source lang="xml"> | <source lang="xml"> |
Revision as of 19:31, 1 December 2012
Contents
Configuration
- OpenKM 6.2
- OpenKM 5.1
- OpenKM 5.0
- OpenKM 4.1 ( valid for older versions )
Enable debug on login process
OpenKM 6.2 - Tomcat
Edit the log4j configuration file located at $TOMCAT_HOME/conf/log4j.properties and add:
log4j.logger.org.springframework.security=DEBUG
OpenKM 5.1 - JBoss
It's good practice to enable login debugging when you make any change to the authentication mechanism. Edit the file /server/default/conf/jboss-log4j.xml and add the category ( remember you must restart jboss for it to take effect ):
<category name="org.jboss.security">
<priority value="TRACE" class="org.jboss.logging.XLevel"/>
</category>
or
<category name="org.jboss.security">
<priority value="TRACE" class="org.jboss.logging.XLevel"/>
<appender-ref ref="SECURITY_F"/>
</category>
<appender name="SECURITY_F" class="org.jboss.logging.appender.DailyRollingFileAppender">
<param name="Append" value="true"/>
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<param name="File" value="${jboss.server.home.dir}/log/jboss.security.log"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c] %m%n"/>
</layout>
</appender>
More info at JBoss and JAAS debug.
Active directory utilities
We recommend to take a look at these tools:
See also: