You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Room/Channel/Group Membership based on LDAP group membership #2759
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
Reacted by Mike Tupker, DK, Trey Mitchell, Aaron Ogle, Paul Eipper, didierm, Wouter Saelens, Nex Sabre, dezechristophe, Artem Alexandrov and 35 more
Reacted by Nico Stöckigt, ChrissW-R1, Felix and Zegorax
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.
Reacted by Simon, mkretzer, gardouille, Abraka and TobsA
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
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....
Reacted by ChrissW-R1, dertdu, Christian Borchmann-Backhaus and mkretzer
Activity
mkretzer commentedon Sep 19, 2016
Is there any new info about this? This feature is extremely important for us...
JT089 commentedon Sep 19, 2016
bump We also are highly interested in this feature
PPPBerlin commentedon Nov 15, 2016
This would be awesome! +1
teha75 commentedon Apr 12, 2017
+1
JigSawFr commentedon Apr 12, 2017
+1
amaranto commentedon Aug 14, 2017
+1
diegoluisi commentedon Mar 2, 2018
+1
jvacek commentedon Mar 30, 2018
+1
dairaine commentedon May 15, 2018
+1
christianprim commentedon Jun 6, 2018
+1
16 remaining items
eliasp commentedon Jul 17, 2018
I think the following approach would make sense:
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 totrue):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 ownRegarding the LDAP search filter, there are a few things which should be taken into account:
In case the LDAP is a Microsoft AD, an
ExtensibleMatchfilter using a forward-lookupmemberOf: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
ExtensibleMatchlookup first and fall back to a regular filter in case of failure.haperu commentedon Aug 30, 2018
I'm in the edu environment, too. Due the yearly class changes, this feature is a must-have for us, too.
-> +1
:)
Thanks
ChrissW-R1 commentedon Sep 7, 2018
We need this feature, too. But it would much better, if we could use Atlassian Crowd, which shades our OpenLDAP.
haperu commentedon Sep 10, 2018
And - as I'm just in "demanding mode* 😀
Please think of the leaver-changer-mover issues in general!
nemhods commentedon Sep 25, 2018
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
andyhoffman12 commentedon Dec 11, 2018
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....
Zegorax commentedon Apr 8, 2019
Is there any news about this feature ? It would be really useful for our company.
wreiske commentedon Apr 29, 2019
Pull request is in: #14278