Two-Factor authentication issues

Description

I have activated the double factor of authentication on my server, the problem is that when configuring it in some users, directly upon logging in again with this it returns the error that the username or password is not correct. I have reset the user’s password but the problem persists. It is worth mentioning that we have LDAP configured.
In other users, access without asking for double authentication.
I have created local users and activated double authentication, and I get an ldap error in the rocket log.
Can anyone help me?

Server Setup Information

  • Version of Rocket.Chat Server: 2.4.11
  • Operating System: Debian GNU/Linux 9
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: 8.11.3
  • MongoDB Version: 4.2.1-1
  • Proxy: nginx
  • Firewalls involved:

Any additional Information

ERROR AT LOGIN WITH LOCAL USER WHO HAS DOUBLE AUTHENTICATION ACTIVATED:

server.js:204 LDAPHandler ➔ error Error: User not Found
at MethodInvocation. (app/ldap/server/loginHandler.js:60:10)
at packages/accounts-base/accounts_server.js:460:31
at tryLoginMethod (packages/accounts-base/accounts_server.js:1289:14)
at AccountsServer._runLoginHandlers (packages/accounts-base/accounts_server.js:458:22)
at AccountsServer.Accounts._runLoginHandlers (app/lib/server/lib/loginErrorMessageOverride.js:7:35)
at MethodInvocation.methods.login (packages/accounts-base/accounts_server.js:518:31)
at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1771:12)
at packages/ddp-server/livedata_server.js:719:19
at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12)
at packages/ddp-server/livedata_server.js:717:46
at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1234:12)
at 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

Hi,
I’ve been doing some testing and disabling ldap works with two-factor authentication.
Can anyone tell me why ldap is not working properly?

Same Problem here, but without LDAP, it makes absolutely no sense.