# Unable to do a ldap sync

**URL:** <https://forums.rocket.chat/t/unable-to-do-a-ldap-sync/17570>\
**Category:** Community Support\
**Tags:** rocketchat-apps, docker\
**Created:** [August 11, 2023, 12:15pm UTC](https://forums.rocket.chat/t/unable-to-do-a-ldap-sync/17570 "2023-08-11T12:15:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rami](https://avatars.discourse-cdn.com/v4/letter/r/9d8465/32.png) [@Rami](https://forums.rocket.chat/u/Rami)\
**Post date:** [August 11, 2023, 12:15pm UTC](https://forums.rocket.chat/t/unable-to-do-a-ldap-sync/17570/1 "2023-08-11T12:15:14Z")

</div>

Hello,

I am using rocket chat with docker on centos 7.  
I am trying to synchronize ldap to update my users list.

I can authenticate my users coming from the activ directory, I would like to use the ldap sync feature which allows to register all the users in the user section, when I use this feature I don’t get any error but the sync is not done.

Do you have any idea of this issue ?

Thank you.  
Best regards.

### Server Setup Information

Version  
5.3.1  
Apps Engine Version  
1.35.0  
Node Version  
v14.19.3  
Database Migration  
281 (August 11, 2023 11:16 AM)  
MongoDB  
4.4.15 / wiredTiger (oplog Enabled)  
Commit Details  
HEAD: (a639f2002)  
Branch: HEAD

### Any additional Information

MongoServerSelectionError: getaddrinfo EAI\_AGAIN mongodb  
at Timeout.\_onTimeout (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/sdam/topology.js:312:38)  
at listOnTimeout (internal/timers.js:557:17)  
at processTimers (internal/timers.js:500:7) {  
reason: TopologyDescription {  
type: ‘Single’,  
servers: Map(1) {  
‘mongodb:27017’ =\> ServerDescription {  
\_hostAddress: HostAddress { isIPv6: false, host: ‘mongodb’, port: 27017 },  
address: ‘mongodb:27017’,  
type: ‘Unknown’,  
hosts: ,  
passives: ,  
arbiters: ,  
tags: {},  
minWireVersion: 0,  
maxWireVersion: 0,  
roundTripTime: -1,  
lastUpdateTime: 2075031578,  
lastWriteDate: 0,  
error: MongoNetworkError: getaddrinfo EAI\_AGAIN mongodb  
at connectionFailureError (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/cmap/connect.js:381:20)  
at Socket. (/app/bundle/programs/server/npm/node\_modules/meteor/npm-mongo/node\_modules/mongodb/lib/cmap/connect.js:301:22)  
at Object.onceWrapper (events.js:520:26)  
at Socket.emit (events.js:400:28)  
at emitErrorNT (internal/streams/destroy.js:106:8)  
at emitErrorCloseNT (internal/streams/destroy.js:74:3)  
at processTicksAndRejections (internal/process/task\_queues.js:82:21)  
}  
},  
stale: false,  
compatible: true,  
heartbeatFrequencyMS: 10000,  
localThresholdMS: 15,  
setName: ‘rs0’,  
logicalSessionTimeoutMinutes: undefined  
}  
}  
/app/bundle/programs/server/node\_modules/fibers/future.js:313  
throw(ex);  
^

---

<div class="post-metadata">

**Author:** ![lester.coyoy](https://avatars.discourse-cdn.com/v4/letter/l/c57346/32.png) [@lester.coyoy](https://forums.rocket.chat/u/lester.coyoy)\
**Post date:** [August 12, 2023, 12:19am UTC](https://forums.rocket.chat/t/unable-to-do-a-ldap-sync/17570/2 "2023-08-12T00:19:13Z")

</div>

Hello @Rami

Thanks for reaching us out. QQ Are you using an Enterprise workspace? Cause the LDAP sync is available but for Enterprise Edition ([More info here](https://docs.rocket.chat/use-rocket.chat/workspace-administration/settings/ldap/ldap-data-sync-settings)):

_ **Merge Existing Users** and **Update User Data on Login with OAuth services** are available only on enterprise edition workspaces._

Best!

---

<div class="post-metadata">

**Author:** ![cecure](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@cecure](https://forums.rocket.chat/u/cecure)\
**Post date:** [January 5, 2024, 11:49am UTC](https://forums.rocket.chat/t/unable-to-do-a-ldap-sync/17570/3 "2024-01-05T11:49:57Z")

</div>

Hi Guys,

Looking at the list of features avaliable on the website it does state that “User Syncronisation” is available with the Starter version?

Can we do an initial user sync from Active Directory using LDAP with the “Starter” subscription ?
