RocketChat / RocketChat/Rocket.Chat

LDAP users not deleted on sync

Open
#19,012 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: authentication
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Users deleted from AD/LDAP are not automatically deleted on sync and need to be removed manually.

Steps to reproduce:
  1. Delete user under in AD/LDAP
  2. Perform sync in RC
Expected behavior:

Users previously deleted in AD/LDAP should be automatically deleted in RC when their accounts are not found during sync.

Actual behavior:

Users remain in RC's database and need to be deleted automatically.

Server Setup Information:

Version of Rocket.Chat Server: 3.6.2
Operating System: Ubuntu
Deployment Method: snap
Number of Running Instances: 1
DB Replicaset Oplog:
NodeJS Version: 12.16.1
MongoDB Version: 3.6.14

Client Setup Information

Desktop App or Browser Version: Chrome 85.0.4183.121 / Windows Desktop App ver. 2.17.9
Operating System: Windows

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named in the report. Start by reproducing an AD/LDAP deletion followed by a Rocket.Chat sync on the affected setup, then trace the sync entry point and verify that users absent from LDAP are removed from Rocket.Chat's database.

Written by the indexing model from the issue text.

Assessment

Tech stack
mongodb, typescript
Domain
authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.