How can I print the LdapLoginModule log?

1
0
-1

My expectation is to see the logging while a user tries to logging.

like this
[LdapLoginModule] authentication-first mode; SSL disabled
[LdapLoginModule] user provider: ldap://*****
[LdapLoginModule] attempting to authenticate user: *****
[LdapLoginModule] searching for entry belonging to user: *****
[LdapLoginModule] found entry: CN=*****,OU=*****,OU=*****,OU=*****,DC=*****,DC=*****
[LdapLoginModule] authentication succeeded
[LdapLoginModule] added LdapPrincipal "CN=*****,OU=*****,OU=*****,OU=*****,DC=*****,DC=*****" to Subject
[LdapLoginModule] added UserPrincipal "*****" to Subject

however, I can not see any login in server.log.
then I tried to modify the logging level in standalone.xml
however whenever I restart the server the configuration is overwritten back to the version before.
why? anyone can help me?

1 answer

1
0
-1

Hello,

This component is not delivered by Bonita, but by Oracle. Source code is available:

http://www.javased.com/index.php?source_dir=openjdk-7%2Fcom%2Fsun%2Fsecurity%2Fauth%2Fmodule%2FLdapLoginModule.java

The source code shows the component do a System.out.println. Then the question is “how can we redirect the Tomcat output to the log file? “

According

https://serverfault.com/questions/252934/how-to-redirect-tomcat-console-log-to-files-tomcat-started-via-windows-bat

it should be possible by editing conf/logging.properties, and change the line

.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

to

.handlers = 1catalina.org.apache.juli.FileHandler

Notifications