Issue with LDAP sync

Description

When trying to run a LDAP sync get a server timeout error. Interesting part was this was working after getting the server up and running yesterday.

This is what I see in the log

Exception while invoking method ‘ldap_sync_now’ Error: “cn”:“name”=* is invalid at _buildFilterTree (/opt/Rocket.Chat/programs/server/npm/node_modules/ldap-filter/lib/index.js:200:13) at _buildFilterTree (/opt/Rocket.Chat/programs/server/npm/node_modules/ldap-filter/lib/index.js:158:28) at _parseString (/opt/Rocket.Chat/programs/server/npm/node_modules/ldap-filter/lib/index.js:411:17) at Object.parse (/opt/Rocket.Chat/programs/server/npm/node_modules/ldap-filter/lib/index.js:422:12) at Object.parseString (/opt/Rocket.Chat/programs/server/npm/node_modules/ldapjs/lib/filters/index.js:176:25) at Client.search (/opt/Rocket.Chat/programs/server/npm/node_modules/ldapjs/lib/client/client.js:769:30) at LDAP.searchAllPaged (app/ldap/server/ldap.js:391:15) at LDAP.searchUsersSync (app/ldap/server/ldap.js:244:16) at importNewUsers (app/ldap/server/sync.js:480:7) at MethodInvocation.ldap_sync_now (app/ldap/server/syncUsers.js:24:3) at MethodInvocation.methodsMap.(anonymous function) (app/lib/server/lib/debug.js:62:34) at MethodInvocation.methodMap.(anonymous function) (packages/rocketchat_monitoring.js:2731:30) at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1767:12) at DDP._CurrentMethodInvocation.withValue (packages/ddp-server/livedata_server.js:719:19) at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12) at DDPServer._CurrentWriteFence.withValue (packages/ddp-server/livedata_server.js:717:46) at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12) at Promise (packages/ddp-server/livedata_server.js:715:46) at new Promise () at Session.method (packages/ddp-server/livedata_server.js:689:23) at packages/ddp-server/livedata_server.js:559:43

I20190920-13:33:27.823(-4) ➔ | SERVER RUNNING |

I20190920-13:33:27.823(-4) ➔ ±------------------------------------------------------------+

I20190920-13:33:27.823(-4) ➔ | |

I20190920-13:33:27.823(-4) ➔ | Rocket.Chat Version: 2.0.0 |

I20190920-13:33:27.824(-4) ➔ | NodeJS Version: 8.11.4 - x64 |

I20190920-13:33:27.824(-4) ➔ | MongoDB Version: 4.0.12 |

I20190920-13:33:27.824(-4) ➔ | MongoDB Engine: mmapv1 |

I20190920-13:33:27.824(-4) ➔ | Platform: linux |

I20190920-13:33:27.824(-4) ➔ | Process Port: 3000 |

This ActiveDirectory or regular LDAP?

Hello, jpliss $
Reading the error message, I think it is an error in the filter.
As you say it was working, I would like to know if you had modified the filter.
If you can share with us the filter you are using, we can check it and help you correct any error it can contain.