"invalid escape sequence" Exception Reported if LDAP Connection URL Also Includes DC or CN Information

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

Symptoms

The following exception is reported when testing connection with LDAP server:

1 2 3 4 5 6 7 8 2013-02-12 11:01:15,231 ERROR [btpool0-25 ] fisheye DefaultUserManager-getOrImportUser - Could not authenticate user "atlassian\ldap.user1" com.cenqua.fisheye.user.AuthenticationException: LDAP: could not list users using (&(sAMAccountName=atlassian\ldap.user1)(!(userAccountControl:1.2.840.113556.1.4.803:=2))) on OU=Employees,OU=People (authenticated) Caused by: javax.naming.directory.InvalidSearchFilterException: invalid escape sequence: [B@182623a0; remaining name 'OU=Employees,OU=People'

Cause

The LDAP connection URL is something like:

1 ldap://ldap.url.com:389/DC=atlassian,DC=com

and base DN is:

1 OU=Employees,OU=People

The LDAP connection URL should not contain the base DN information.

Resolution

Changing the connection details as follows, helps in resolving the issue:

LDAP URL:

1 ldap://ldap.url.com:389/

Base DN:

1 OU=Employees,OU=People,DC=atlassian,DC=com
Updated on April 11, 2025

Still need help?

The Atlassian Community is here for you.