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

Can not relogin as LDAP user

Open xadcoh opened this issue 10 years ago • 11 comments

Your Rocket.Chat version: (0.38.0)

Hi. Steps to reproduce:

  1. Fresh install with docker-compose
  2. Register new local user (creating admin user)
  3. Configure LDAP (ldapserver as FQDN or IP (different subnet from rocket.chat server), domain base as top level of catalog, Domain Search User, Domain Search Password, save, test) - OK
  4. Login as LDAP user - OK
  5. Logout
  6. Login as same LDAP user again - Failed

No errors in logs, if logs set to debug, there is a lot of messages, but no errors, just LDAP information about user. Then if login as local admin page will show endless "loading circle", until i press F5. Sometimes i see local admin user without "Administration" menu entry, sometimes it's ok. "Users" menu have an a LDAP user in it (but "Name" field is empty).

OS: Debian 8.5 Docker: 1.11.2 Docker-compose: 1.6.2

Thank you

xadcoh avatar Aug 31 '16 12:08 xadcoh

Same issue here. After enabling LDAP integration users can log in one time only. After they have logged out they won't be able to login again.

askannon avatar Sep 07 '16 09:09 askannon

It only works when I set Merge existing users=True

askannon avatar Sep 07 '16 10:09 askannon

This is because the ldap field is not set in the user document:

Offending code here

I believe it must have previously been set in this function

userData.ldap is returned by a function, but never set in the DB.

jamie-owen avatar Sep 08 '16 14:09 jamie-owen

same issue

ghamed avatar Sep 09 '16 13:09 ghamed

We're seeing this issue as well! This has broken a significant amount of users for us. Please can we have an update on this?

gazzerh avatar Sep 15 '16 11:09 gazzerh

I have the same issue.

windsource avatar Mar 29 '17 12:03 windsource

duplicate of #5165 ? We absolutely need a fix for that bug

bbrauns avatar Mar 30 '17 14:03 bbrauns

The same problem here.

deiansp avatar Apr 19 '17 08:04 deiansp

Need some workaround or patch please

kassanmoor avatar Jun 23 '17 15:06 kassanmoor

Hi, i just installed 0.56.0 and seems like it works now.

xadcoh avatar Jun 26 '17 06:06 xadcoh

I am using 0.57.2 and this issue still happening, first times works well, but eventually one user logs out and never can enter again, logs display correct access, only error is:

rocketchat_logger rocketchat_logger.js:377 LDAP ➔ Connection.error connection { [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }

kassanmoor avatar Jul 19 '17 21:07 kassanmoor