Log more LDAP query details

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Using the logback.xml file

Create the following logback.xml file in the root of the Bitbucket Server home directory if it doesn't exist already and add the following:

1 2 3 <included> <logger name="com.atlassian.crowd.directory.SpringLDAPConnector" level="DEBUG"/> </included>

This will add the following line to the log when Bitbucket Server tries to authenticate the user:

1 2013-04-30 14:26:40,042 DEBUG ... c.a.c.directory.SpringLDAPConnector Performing user search: baseDN = ou=users,ou=system - filter = (&(objectclass=posixAccount)(uid=admin))

For example:

1 2 3 2013-04-30 14:48:42,821 DEBUG ... c.a.s.i.user.DefaultUserService Authenticating user drohan 2013-04-30 14:48:45,337 DEBUG ... c.a.c.directory.SpringLDAPConnector Performing user search: baseDN = ou=users,ou=system - filter = (&(objectclass=posixAccount)(uid=drohan)) 2013-04-30 14:48:47,454 DEBUG ... c.a.s.i.u.Bitbucket ServerAuthenticationFilter Authentication success.

Make sure to restart Bitbucket for this change to tack effect.

Using the REST API endpoint

This log level can also be enabled by using the following REST API endpoint (see Enable debug logging for details):

1 curl -u <ADMIN_USER> -X PUT -d "" -H "Content-Type: application/json" http://<BITBUCKET_BASE_URL>/rest/api/latest/logs/logger/com.atlassian.crowd.directory.SpringLDAPConnector/DEBUG
Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.