First LDAP authentication take long time in version 1.1.1

Description:

Hi !
After migration V0.74.3 to V1.0.3, i have a problem with slowness when first connecting an LDAP user.
When I log in with an LDAP account the first time, it easily takes 1 to 2 minutes to get to the rocketchat homepage.
With a local account, I don’t have the problem.
In version 0.74.3, I had no problem.
I have an application server that hosts RocketChat in docker format in version 1.0.3 under redhat. I have a second server under redhat to host mongodb in version 4.0.6.

Thanks for your help

Steps to reproduce:

  1. Page login of rocketchat
  2. Connect with userldap for the firstime
  3. Wait…

Expected behavior:

The connection to the LDAP and the account consultation is going well. It finds the LDAP user account in the logs. On the other hand, it stops in the logs just after the LDAP disconnection “rocketchat_1 | LDAP ➔ Search.info Closed”. Then, it is necessary to wait 1 minute before it continues on the line concerning the synchronization of LDAP data “rocketchat_1 | LDAPSync ➔ info Syncing user data”. It is this minute that causes these delays in the first connections

Actual behavior:

The connexion is stopped in this screen :

Server Setup Information:

  • Version of Rocket.Chat Server: 1.1.1
  • Operating System: REDHAT 7.6
  • Deployment Method: Docker composer
  • Number of Running Instances: 1
  • DB Replicaset Oplog: yes in local for version 1.1.1
  • NodeJS Version:
  • MongoDB Version: 4.0.6

Additional context