Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

enabling of LDAP authentification results in locking out the local admin

Open FINIUS opened this issue 10 years ago • 8 comments

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.

FINIUS avatar Jan 14 '16 12:01 FINIUS

+1, LDAP should not be exclusive.

Removed-5an avatar Jan 14 '16 12:01 Removed-5an

:+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.

tuudik avatar Jan 14 '16 14:01 tuudik

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?

ghost avatar Jan 14 '16 14:01 ghost

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.

tuudik avatar Jan 14 '16 14:01 tuudik

Yeah. Indeed, I would prefer the 2nd suggestion

ghost avatar Jan 14 '16 14:01 ghost

See also #1900 -- if you prefer to have a local admin account that will keep working even after LDAP is enabled.

adyp avatar Jan 14 '16 20:01 adyp

That would also be a solution. It's the way "ownCloud" deals with this issue.

ghost avatar Jan 14 '16 23:01 ghost

LDAP now uses regular accounts as fallback by default, but you can also turn this off on the admin panel.

engelgabriel avatar Feb 05 '16 20:02 engelgabriel