You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using rocket.chat with ldap connection since 3 years. Every thing is working great. But now I need to modify the "Unique Identifier Field" value for the LDAP sync. Since the first config of Rocketchat, it was set to "sAMAccountName", but I need to change it to accomodate some evolutions in our LDAP directory.
I have try to change it to "mail" but we cannot connect anymore. I am getting the following error :
{"level":50,"time":"2025-04-28T14:40:22.101Z","pid":93659,"hostname":"[MY SERVER NAME]","name":"Data Importer - LDAPUserConverter","err":{"type":"errorClass","message":"Username already exists. [403]","stack":"Error: Username already exists. [403] at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1225:15) at processTicksAndRejections (node:internal/process/task_queues:105:5) at AccountsServer.Accounts.insertUserDoc (app/authentication/server/startup/index.js:323:14) at LDAPUserConverter.insertOrUpdateUser (app/importer/server/classes/converters/UserConverter.ts:241:19) at LDAPUserConverter.convertRecord (app/importer/server/classes/converters/UserConverter.ts:53:3) at LDAPUserConverter.iterateRecords (app/importer/server/classes/converters/RecordConverter.ts:219:19) at LDAPUserConverter.convertData (app/importer/server/classes/converters/UserConverter.ts:64:4) at Function.convertSingleUser (server/lib/ldap/UserConverter.ts:51:3) at Function.syncUserForLogin (server/lib/ldap/Manager.ts:365:3) at Function.addLdapUser (server/lib/ldap/Manager.ts:284:16) at Function.login (server/lib/ldap/Manager.ts:53:11) at packages/accounts-base/accounts_server.js:593:9 at tryLoginMethod (packages/accounts-base/accounts_server.js:1560:14) at AccountsServer._runLoginHandlers (packages/accounts-base/accounts_server.js:592:22) at AccountsServer.Accounts._runLoginHandlers (app/lib/server/lib/loginErrorMessageOverride.ts:9:17) at MethodInvocation.methods.login (packages/accounts-base/accounts_server.js:654:22)","isClientSafe":true,"error":403,"reason":"Username already exists.","errorType":"Meteor.Error"},"msg":"Username already exists. [403]"}
Is it possible to modify this parameter without having to recreate all my users ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have been using rocket.chat with ldap connection since 3 years. Every thing is working great. But now I need to modify the "Unique Identifier Field" value for the LDAP sync. Since the first config of Rocketchat, it was set to "sAMAccountName", but I need to change it to accomodate some evolutions in our LDAP directory.
I have try to change it to "mail" but we cannot connect anymore. I am getting the following error :
{"level":50,"time":"2025-04-28T14:40:22.101Z","pid":93659,"hostname":"[MY SERVER NAME]","name":"Data Importer - LDAPUserConverter","err":{"type":"errorClass","message":"Username already exists. [403]","stack":"Error: Username already exists. [403]
at AccountsServer.insertUserDoc (packages/accounts-base/accounts_server.js:1225:15)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at AccountsServer.Accounts.insertUserDoc (app/authentication/server/startup/index.js:323:14)
at LDAPUserConverter.insertOrUpdateUser (app/importer/server/classes/converters/UserConverter.ts:241:19)
at LDAPUserConverter.convertRecord (app/importer/server/classes/converters/UserConverter.ts:53:3)
at LDAPUserConverter.iterateRecords (app/importer/server/classes/converters/RecordConverter.ts:219:19)
at LDAPUserConverter.convertData (app/importer/server/classes/converters/UserConverter.ts:64:4)
at Function.convertSingleUser (server/lib/ldap/UserConverter.ts:51:3)
at Function.syncUserForLogin (server/lib/ldap/Manager.ts:365:3)
at Function.addLdapUser (server/lib/ldap/Manager.ts:284:16)
at Function.login (server/lib/ldap/Manager.ts:53:11)
at packages/accounts-base/accounts_server.js:593:9
at tryLoginMethod (packages/accounts-base/accounts_server.js:1560:14)
at AccountsServer._runLoginHandlers (packages/accounts-base/accounts_server.js:592:22)
at AccountsServer.Accounts._runLoginHandlers (app/lib/server/lib/loginErrorMessageOverride.ts:9:17)
at MethodInvocation.methods.login (packages/accounts-base/accounts_server.js:654:22)","isClientSafe":true,"error":403,"reason":"Username already exists.","errorType":"Meteor.Error"},"msg":"Username already exists. [403]"}
Is it possible to modify this parameter without having to recreate all my users ?
Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions