Migrate users to LDAP (long) after initial users creations


We deployed rocket as a test to our users (<20) and figured we would implement LDAP auth later. Now, I had not fully read the LDAP doc (here and thus I have this issue:

If you cannot login without getting any error messages (the last thing in log you see is Attempt to bind <correct dn of user> ), make sure the username of your ldap account does not match any username of a local account. For example if you created a local user with username joe , then enable ldap and try to login with username joe (who exists on your ldap server), it will silently fail without any error message in your log simply saying username or password do not match. You cannot login with joe by your ldap password nor by your local password any more.

The issue is that we had used the same usernames and emails and now are stuck. We can’t delete users and have them log since there are scores or channels created (for which users would be last-owner)

Any suggestions for workarounds and fixing my screw-up ?

Server Setup Information

  • Version of Rocket.Chat Server: snap (autoupdate)
  • Operating System: Ubuntu server 18.04 LTS
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:
  • Proxy: nginx
  • Firewalls involved: yes

Any additional Information