I am using spring ldapTemplate version 1.3.2 to query results from active directory. We would like to be able to see the query generated by ldapTemplate.search() and similar methods in order to debug deployments of our product to clients.
So far we have tried looking in the docs to see if there's a "toString" method that would provide this but didn't find anything. We also changed the debug level in log4j.properties file:log4j.logger.org.springframework.security=DEBUG
. This seems to give us more verbose output but doesn't actually display the full ldap query string.
Any help would be appreciated.
Unfortunately this information is currently not logged by the library. It does seem reasonable that it should be able to do so though. Please file a jira issue here: https://jira.spring.io/browse/LDAP, and please make sure to be as specific as possible with regards to what should be logged.
Finally, I would like to encourage you to upgrade to the latest version of the library. Current version is 2.0.2.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With