# LDAPs-Synch doesnt work

**URL:** <https://forums.rocket.chat/t/ldaps-synch-doesnt-work/8402>\
**Category:** Community Support\
**Created:** [September 2, 2020, 12:44pm UTC](https://forums.rocket.chat/t/ldaps-synch-doesnt-work/8402 "2020-09-02T12:44:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![zmwrc](https://avatars.discourse-cdn.com/v4/letter/z/3ec8ea/32.png) [@zmwrc](https://forums.rocket.chat/u/zmwrc)\
**Post date:** [September 3, 2020, 7:54am UTC](https://forums.rocket.chat/t/ldaps-synch-doesnt-work/8402/3 "2020-09-03T07:54:42Z")

</div>

Hey @klepptor

we are currently trying to synchronize one OU. In the future we want to synchronize three of them, but first we want to get LDAP-Synch working for this one specific OU (as you can see in the screenshots below).  
Each OU has their own subset of OUs. Primarily being organized after the departments of our company.

 ![ad-overview](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/4/452cc469ea9617b4e01cc50e40976d6f4776a2eb.png)

These are our Rocketchat-Server-Configurations regarding LDAP:

 ![1](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/3/386bfbe023933a0225b6858d24f7192743d87e2d.png)  
 ![7](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/a/af001731d549f8dba293396ba3f433fa9198808e.png) ![6](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/5/583286a47c2647a96f89b1c511b6489d46032c1f.png) ![5](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/3/34f43be3dab2b0b0a1bbef98439487b76563d806.png) ![4](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/9/92c0df9887501c1c60701c441d481305ba826fde.png) ![3|227x500]  
 ![7](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/a/af001731d549f8dba293396ba3f433fa9198808e.png) ![6](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/5/583286a47c2647a96f89b1c511b6489d46032c1f.png)

And these are the users that got synchronized by LDAP. There should be many more users synchronized though. A lot of users are missing. Only one user has the role “user” assigned, the others didnt get one.

 ![RC-Users](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/a/a2c6e31ec18cf04f6b0a102b60849355ebcbea70.png)

I also manually deleted the LDAP-users from our MongoDB several times by following the suggestion of @alogicking

> [@How to delete users from de DB](https://forums.rocket.chat/t/how-to-delete-users-from-de-db/5655/2):
>
> Not a very good suggestion but for me it worked. Remove users from any default channels if available. Stop the application. Login to mongo console with the authenticated user and run the below command: use rocketchat switched to db rocketchat db.users.remove({“ldap”: true}); hope it helps.

The users seen in the screenshot above are somehow not recognized as LDAP-users and cant be deleted…

---

_[View the full topic](https://forums.rocket.chat/t/ldaps-synch-doesnt-work/8402)._
