Reputation: 97
I have added the below realm in server.xml in order to enable ldap authentication in tomcat.
<Realm className="com.speedlegal.catalina.realm.JNDIRealm"
connectionName="name"
connectionPassword="pswd"
connectionURL="ldaps://domain:3269"
alternateURL="ldaps://domain:3269"
userBase="DC=legal,DC=regn,DC=net"
userSubtree="true"
userSearch="(sAMAccountName={0})"
roleBase="OU=Groups,DC=xxx,DC=yyy"
roleSubtree="true"
roleName="CN"
commonRole="User" />
I want to LOG whats happening inside this. Is there any way to achieve this? Because I wanna know how the ldap server is actually being queried from tomcat.
Upvotes: 1
Views: 1172
Reputation: 97
I added
org.apache.catalina.realm.level = ALL
org.apache.catalina.realm.useParentHandlers = true
org.apache.catalina.authenticator.level = ALL
org.apache.catalina.authenticator.useParentHandlers = true
1catalina.org.apache.juli.FileHandler.bufferSize = -1
in logging.properties file and now it works.
Upvotes: 2