Tuesday, February 21, 2012

How-to: Enabling Realm debug logging in Tomcat 6 and upper

To enable debug level logging for Tomcat Realm and Authentication you shold modify $CATALINA_HOME/conf/logging.properties file as shown below:



 In many posts available in the Internet you can find other solution:

<Realm className="org.apache.catalina.realm.JNDIRealm" debug="99"
    connectionURL="ldap://localhost:389"
    userPattern="uid={0},ou=people,dc=mycompany,dc=com"
    roleBase="ou=groups,dc=mycompany,dc=com"
    roleName="cn"
    roleSearch="(uniqueMember={0})"
/>

but this don't work anymore in Tomcat 6 and 7.

No comments:

Post a Comment