Bitbucket Server & AD: User <username> does not exist Edited

Note: This issue has been solved with the help of the Atlassian Customer Service. Our users were in another, old Base DN.


Our BitBucket Server v5.4.0 is hooked up to our Active Directory. It uses a specialised user account to retrieve information from the AD. It is able to authenticate with this account.

However, in the second level of the Remote Directory test I receive the message:

"retrieve user" testen : Fehlgeschlagen
User <ftietjen> does not exist

"Fehlgeschlagen" means "failed".

Authentication used to work. We have recently changed our Active Directory structure. In this process, we have also moved the folder with our Bitbucket User Group in it to a different subfolder (CCA\Gruppen\Bitbucket > CCDE\Groups\Bitbucket). We have also changed these settings in our Bitbucket Server. We also updated to the newest version of Bitbucket Server.

Here are the settings we changed (I've left out those that were not changed, because those worked before):

Old config

Attributes: 62 1507267720419
    ldap.basedn: OU=CCA,DC=domain,DC=companyname,DC=com OU=BitBucket,OU=Gruppen
    ldap.user.filter: (&(objectCategory=Person)(sAMAccountName=*)(memberOf=CN=BitBucket_User,OU=BitBucket,OU=Gruppen,OU=CCA,DC=domain,DC=companyname,DC=com))
    ldap.userdn: CN=bitbucket_ad_username,OU=Users,DC=domain,DC=companyname,DC=com

New config

Attributes: true
    ldap.basedn: OU=CCDE,DC=domain,DC=companyname,DC=com OU=BitBucket,OU=Groups
    ldap.user.filter: (&(objectCategory=Person)(sAMAccountName=*)(memberOf=CN=BitBucket_User,OU=BitBucket,OU=Groups,OU=CCDE,DC=domain,DC=companyname,DC=com))

I've anonymised some of the information.
I've changed the LDAP User to the new format because I think it makes more sense. The user itself can authenticate, but it doesn't find any data about other Bitbucket users.

The users I'm trying to authenticate are all in the group "CCDE\Groups\Bitbucket\Bitbucket_User". None of them can authenticate in Bitbucket, but they can authenticate flawlessly in any other system, even the one I wrote myself.

Could anyone help me troubleshoot this problem? Thanks!

0 answers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,163 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you