LDAP Authentication succeeded, there is no email to create an account

Description

Hello everyone We have set up a chat for more than a year with the creation of users in AD (via LDAP). Everything has been working all this time. Accounts are created in AD, then they log in to Rocket.chat without any problems under this account. But a few days ago, synchronization stopped working (users are successfully created in the chat itself).

A map of custom fields is used:
{"info":"customFields.Note","manager":"customFields.Head","#{st} #{postalCode}":"customFields.chart","mobile":"customFields.Mobile","#{displayName}":"name", "mail":"email","l":"customFields.branch","title":"customFields.position","department":"customFields.department","telephoneNumber":"customFields.IP","company":"customFields.company"}

Log, when trying to sync:
I20220907-11:11:08.615(3) server.js:204 LDAPSync ➔ error errorClass [Error]: LDAP Authentication succeeded, there is no email to create an account. Have you tried setting your Default Domain in LDAP Settings? [LDAP-login-error] at addLdapUser (app/ldap/server/sync.js:464:17) at app/ldap/server/sync.js:542:5 at Array.forEach (<anonymous>) at app/ldap/server/sync.js:509:13 at runWithEnvironment (packages/meteor.js:1286:24) { isClientSafe: true, error: 'LDAP-login-error', reason: 'LDAP Authentication succeeded, there is no email to create an account. Have you tried setting your Default Domain in LDAP Settings?', details: undefined, errorType: 'Meteor.Error' }

Log, when trying to log in to account:
I20220907-11:45:06.087(3) server.js:204 LDAPHandler ➔ error Error: User not Found at MethodInvocation.<anonymous> (app/ldap/server/loginHandler.js:60:10) at packages/accounts-base/accounts_server.js:499:31 at tryLoginMethod (packages/accounts-base/accounts_server.js:1341:14) at AccountsServer._runLoginHandlers (packages/accounts-base/accounts_server.js:497:22) at AccountsServer.Accounts._runLoginHandlers (app/lib/server/lib/loginErrorMessageOverride.js:7:35) at MethodInvocation.methods.login (packages/accounts-base/accounts_server.js:557: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 (<anonymous>) at Session.method (packages/ddp-server/livedata_server.js:689:23) at packages/ddp-server/livedata_server.js:559:43

Server Setup Information

  • Version of Rocket.Chat Server: 3.18.3
  • Operating System: Ubuntu 18.04.6 LTS
    LDAP on Windows Server 2012 R2 Standart

Maybe you need write an e-mail in AD account.

Thanks for the reply. I tried to fill in ALL the fields that are in the profile. To no avail.

Updated to 4.8.3 , specified another user for LDAP synchronization - everything worked