enabling of LDAP authentification results in locking out the local admin
When LDAP is activated, a user has only left the oppertunity to log in using LDAP authentification. But for that there only exists one firstly created local admin, it seems to be impossible for the (only) admin to log in again, since the moment the ldap auth had been enabled. So the admin seemed to be locked out.
+1, LDAP should not be exclusive.
:+1:
Fortunately, before I logged out with my admin user, I let other user log in using LDAP and made him admin.
For my case there was also duplicate key error too. I used same username and e-mail for first user in Rocket.Chat as in LDAP.
ok, nice workaround for the moment - I'll give it it try!
But in general this behaviour should IMHO be fixed and hardened soon. Maybe also the first ldap user logged in should be made admin?
Or, if it would be possible to login in using LDAP user with same username or e-mail. Or, if you could define right after configuring LDAP, who will be the admin.
Yeah. Indeed, I would prefer the 2nd suggestion
See also #1900 -- if you prefer to have a local admin account that will keep working even after LDAP is enabled.
That would also be a solution. It's the way "ownCloud" deals with this issue.
LDAP now uses regular accounts as fallback by default, but you can also turn this off on the admin panel.