How to debug Confluence LDAP authentication agains two directories?

I am trying to add another Active Directory for authenticating on Confluence 3.5.13 but I am not able to login with any user on the new directory.

Both directories are Microsoft Active Directories and I am able to bind on them with an utility, still Confluence doesn't seem to let me authenticate users with the new one.

  • I tried to change directories order
  • I see nothing interesting in the server logs (even after switching to debug mode)

2 answers

1 accepted

Enable logging for crowd - Confluence has an internal version inside.

It seems that atlassian did not spend too much time setting and documenting the correct LDAP configuration for Microsoft Active Directory. Here is a set that is optimized

# User Schema Settings
User Object Class: person
User Object Filter: (&(samAccountType=805306368)(sAMAccountName=*))
User Name Attribute: sAMAccountName

Note: I'm still working to improve the settings and I will update the answer. On my TODO list: filtering the disabled accounts and improving the filters for the groups, now I have "only" 13000 of them.

On my TODO list: filtering the disabled accounts

Currently this is not possible in Confluence out of the box. It's being tracked at . But it's achievable by adding the following in your User Object Filter:


So it should look something like this from your original User Object Filter:


0 vote
Colin Goudie Community Champion Apr 04, 2012

What groups are coming in on the 2nd AD connection? And do any of these group have permissions in Global Permissions to access Confluence?

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted Thursday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

176 views 12 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot