-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Deactivated users gets activated after Background LDAP Sync #17561
Comments
Thank you for reporting, we have exactly the same problem. A custom bash script is triggered by our identity management system when a user has left the company. The script deactivates the rocket.chat user account but the next day he/she is reactivated...So at the moment it is not possible to completely deny access for old or abusive user accounts besides deletion. |
Definitely! |
I've just encountered this issue after upgrading to 3.2.2 from 3.0.7. This is really bad, especially since deactivated accounts will become reactivated again after the next sync. Edit:
|
I did some digging, and I'm fairly sure this PR introduced the bug #16671 Either of these seem like the main culprit since the rest of the PR is just moving code around: Rocket.Chat/app/ldap/server/ldap.js Line 380 in 3a9523a
Rocket.Chat/app/ldap/server/ldap.js Line 459 in 3a9523a
This one seems to be the most likely one: Rocket.Chat/app/ldap/server/sync.js Line 568 in 3a9523a
I'm almost confident this bug was present before, as there doesn't seem to be any check for filters or ldap status of the user in I'd try a PR, but I'm not feeling up to the task with my JS skills and uncertainty of the codebase. Ping @rodrigok @sampaiodiego |
Yeah. We have the same bug. After upgrading server from 2.4.1 to 3.2.1, all deactivated users were activated. |
Thanks for the report, we are investigating this. |
That is really bad for us. |
I have the opposite problem. We have a bot user that's enabled in AD but keeps getting deactivated every time a background sync is run. It's in a sub-OU under the user root. We're running 3.3.0. |
Description:
Our users are imported to Rocket.Chat from our corporate LDAP server.
When user leave organization his LDAP account is disabled and script like this is deactivating Rocket.Chat account for that user.
After upgrade to 3.1.1 I see, that deactivated users in past are activated now. It's a security bug.
I think that such activating of deactivated users is a result of Background LDAP Sync (scheduled one a day for our deployment)
Steps to reproduce:
Expected behavior:
Disabled in LDAP accounts should remain deactivated while Background LDAP Sync
Actual behavior:
All deactivated users become activated after Background LDAP Sync
Server Setup Information:
The text was updated successfully, but these errors were encountered: