Integration with LDAP
Asked by Raphael Costa:

Good afternoon people,

Can anyone help me configure LDAP integration with Confluence Server?

I've followed the documentation (<https://confluence.atlassian.com/doc/connecting-to-an-ldap-directory-229838241.html>) but I always bump into the error that the user doesn't exist.

Does anyone have a correct setup step by step?

Thanks


Answers:
author: Kishan Sharma
body: I can see there are three errors in red. Would you mind pasting the errors in english ? The last error says that it has failed to authenticate a user with name "rehc". Could be something wrong with that user setup. If possible try to delete it and run test again.

comments: author: Raphael Costa
body: Hello, the error is this:

Test get of user associations: Failed

I've already tested it with several users, including Domain Admin user and the error persists


author: Kishan Sharma
body: Ok thanks, it seems like the LDAP is not able to find the user membership. Can you check the `confluence-home/logs/atlassian-confluence.log` file and see the reason why sync is failing.


author: Raphael Costa
body: Is the confluence log path the same?


author: Kishan Sharma
body: ah, the log path is - `confluence-home/logs/atlassian-confluence.log`


author: Raphael Costa
body: I found the file but I didn't find any error regarding sync.  
Is there any keyword or better, any place I can upload the log?


author: Kishan Sharma
body: I would suggest raising a support ticket to [Atlassian](https://support.atlassian.com/contact/) for further troubleshooting. Please drop a comment on this thread once you have found a solution so that it will help other community members.


author: Kishan Sharma
body: Hi [@Raphael Costa](/t5/user/viewprofilepage/user-id/4528645) Welcome to Atlassian Community! Have you verified if the Bind user has been setup correctly and if you are able to connect to the directory server using its password ?

The specific privileges required by the user to connect to LDAP are "Bind" and "Read" (user info, group info, group membership, update sequence number, deleted objects), which the user can obtain by being a member of the Active Directory's built-in administrators group.

comments: author: Raphael Costa
body: Hello,

Yes, in that respect everything is correct.

Do you have any step-by-step schema configuration and other required settings?


author: Kishan Sharma
body: Thanks for confirming. If the Server settings (Hostname/port/username/pwd) are all correct, the next things to look at is the LDAP schema, where you will need to setup Base/User/Group DN correctly and the User/Group schema settings. You might need your LDAP SME's help on these. Once this is done you should be able to quick test the directory sync on JIRA.


author: Raphael Costa
body: It's all very strange. The first time I did the setup, it went with some errors but it synced all users; now it no longer synchronizes and the error occurs as per the print;  
My configuration also attached for you to help me![error.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/157501i263F0C2B14E2616C/image-size/large?v=v2&px=999 "error.PNG")![print 1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/157502i03426A192EE7F999/image-size/large?v=v2&px=999 "print 1.PNG")![print 2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/157503i931C4CAE6B937D91/image-size/large?v=v2&px=999 "print 2.PNG")![print 3.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/157504iA43C294A1782FA84/image-size/large?v=v2&px=999 "print 3.PNG")![print 4.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/157505i581C4F849D941D40/image-size/large?v=v2&px=999 "print 4.PNG")![print 5.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/157506iDF47D1E5619B5D61/image-size/large?v=v2&px=999 "print 5.PNG")


Tags: confluence-server

server