RocketChat / RocketChat/Rocket.Chat

LDAP Group - Channel Assignment Issue

Open
#19,600 3 comments 0 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:

LDAP Group Channel Map not working.

Steps to reproduce:
  1. Set Base DN: OU=Users,OU=Camarena,DC=CAMARENAHEALTH,DC=ORG
  2. Set LDAP Group Base DN: OU=Users,OU=Camarena,DC=CAMARENAHEALTH,DC=ORG
  3. Group filter: (&(sAMAccountName=#{username})(memberof:1.2.840.113556.1.4.1941:=CN=#{groupName},DC=CAMARENAHEALTH,DC=ORG (objectCategory=person)(objectClass=user))
  4. LDAP Group Channel Map: {"IT_Department":"it_test"}
Expected behavior:

End users inside the group IT_Department are automatically assigned to the channel it_test.

Actual behavior:

End user in group IT_Department was not assigned to the channel it_test.

Server Setup Information:
  • Version of Rocket.Chat Server: 3.8.0
  • Operating System: Ubuntu 20.04.01
  • Deployment Method: Manual
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: 12.18.4
  • MongoDB Version: 4.0.21
Client Setup Information
  • Desktop App or Browser Version: Both
  • Operating System: Windows 10
Additional context

Enterprise customer with about 500 users. Not having a decent LDAP import process for AD is a huge downer. There are other issues concerning LDAP that needs to be addressed. Not sure if I would make a separate issue per.

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

Start by reproducing the LDAP group channel mapping with the Base DN, group filter, and {"IT_Department":"it_test"} configuration provided. Trace the LDAP group assignment flow and verify that users in IT_Department are assigned to it_test without breaking other LDAP authentication behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.