Skip to content

Room/Channel/Group Membership based on LDAP group membership #2759

Closed

Description

@rhysxevans

Your Rocket.Chat version: 0.24.0

Hi

I would like the ability to assign membership to a Room/Channel/Group via a group in a LDAP directory. This way we can set the membership once and not update it every time someone new comes on board.

I think this would be particularly useful for Private Groups, where we have people come and go within the organization.

Thanks

Activity

  1. mkretzer commented on Sep 19, 2016

    @mkretzer

    Is there any new info about this? This feature is extremely important for us...

  2. JT089 commented on Sep 19, 2016

    @JT089

    bump We also are highly interested in this feature

  3. PPPBerlin commented on Nov 15, 2016

    @PPPBerlin

    This would be awesome! +1

  4. teha75 commented on Apr 12, 2017

    @teha75

    +1

  5. JigSawFr commented on Apr 12, 2017

    @JigSawFr

    +1

  6. amaranto commented on Aug 14, 2017

    @amaranto

    +1

  7. diegoluisi commented on Mar 2, 2018

    @diegoluisi

    +1

  8. jvacek commented on Mar 30, 2018

    @jvacek

    +1

  9. dairaine commented on May 15, 2018

    @dairaine

    +1

  10. christianprim commented on Jun 6, 2018

    @christianprim

    +1

  11. added
    planned
    on Jun 7, 2018
  12. 16 remaining items

  13. eliasp commented on Jul 17, 2018

    @eliasp

    I think the following approach would make sense:

    • Expose per channel admin UI options, which allow to define the requirements for the LDAP-based channel membership
      • LDAP Group:
        • simple mode: allows to define the group DN (leaves figuring out the required search filter to RocketChat internally)
        • advanced mode: allows to define a custom search filter
      • Mandatory Join: true/false - either forces all users of the defined AD group to join the channel or otherwise allows them to join the channel if they want to
      • Open Membership: (available when Mandatory Join is true): true/false: allows further users besides just those matched by the LDAP filter to join the channel, to realize setups where the group is used to enforce a mandatory channel membership, but should also allow further users to join this channel on their own

    Regarding the LDAP search filter, there are a few things which should be taken into account:

    In case the LDAP is a Microsoft AD, an ExtensibleMatch filter using a forward-lookup memberOf:1.2.840.113556.1.4.1941:=(CN=group-foo,ou=department,dc=company,dc=tld)-style filter should be used which is far more performant in case it is supported.

    In case of an LDAP setup not providing those capabilities, a traditional (&(objectClass=posixGroup)(memberUid=%s)) has to be used which doesn't resolve nested groups - this would require additional effort (which would be fantastic to have 😄 ).

    Regarding the "LDAP Type" it could be either configured globally or alternatively determined during runtime by attempting an ExtensibleMatch lookup first and fall back to a regular filter in case of failure.

  14. modified the milestones: , 0.68.0 on Jul 20, 2018
  15. modified the milestones: 0.68.0, Short-term on Jul 31, 2018
  16. haperu commented on Aug 30, 2018

    @haperu

    I'm in the edu environment, too. Due the yearly class changes, this feature is a must-have for us, too.
    -> +1
    :)

    Thanks

  17. ChrissW-R1 commented on Sep 7, 2018

    @ChrissW-R1
    Contributor

    We need this feature, too. But it would much better, if we could use Atlassian Crowd, which shades our OpenLDAP.

  18. haperu commented on Sep 10, 2018

    @haperu

    And - as I'm just in "demanding mode* 😀
    Please think of the leaver-changer-mover issues in general!

  19. nemhods commented on Sep 25, 2018

    @nemhods

    If anyone is desperate for this feature and not running in any kind of production environment, i threw together a quick-and-dirty python script to sync LDAP users to channels/rooms using the REST API:
    https://github.com/nemhods/rc-ldap-sync

  20. andyhoffman12 commented on Dec 11, 2018

    @andyhoffman12

    So typically at my business employees are given AD Security groups that dictate their access to some system or file share. Typically a user is a member of corp-SG-Engineering or corp-SG-Sales.
    In some cases i'll make custom security groups for an app like corp-SG-RocketChat-Allowed or corp-SG-RocketChat-Engineering, corp-SG-RocketChat-Announce, corp-SG-RocketChat-Office, corp-SG-RocketChat-Shop

    I'm likely to nest the Rocket Chat groups into an employee's department security group.

    I'd like to force members of specific security groups to specific rooms. I also don't specifically want users to be able to join any of these department level rooms. I however wouldn't mind some free join of other rooms for sub groups like Marketing-Sales....

  21. Zegorax commented on Apr 8, 2019

    @Zegorax

    Is there any news about this feature ? It would be really useful for our company.

  22. wreiske commented on Apr 29, 2019

    @wreiske
    Contributor

    Pull request is in: #14278

  23. modified the milestones: Short-term, 2.0.0 on Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    planned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions