Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

LDAP "bind" paramater ignores users in the subgroups that are members of the bound group (no recursive user import)

Open FINIUS opened this issue 10 years ago • 12 comments

Only ActiveDirectory/LDAP users that are directly added to the bound RocketChat access ldap group are getting access to RocketChat. Users within groups that are menbers of the bound acces Group are ignored/not imported. So there seems to be no recursive user Import, even if the "sub" param is set to the "filter sting" of the bind search.

FINIUS avatar Jan 14 '16 13:01 FINIUS

@finius can you help to fix this?

engelgabriel avatar Jan 14 '16 20:01 engelgabriel

I must confess, I am no LDAP/AD expert at all. Maybe this can be solved by simply modifying the filter string. If none can support here I will see if the can a simple user sided solution be found. But maybe the developers should take a look at ownCloud and it's LDAP integration.

ghost avatar Jan 14 '16 23:01 ghost

I haven't made any progress in this matter. Any AD/LDAP experts in here?

ghost avatar Jan 18 '16 16:01 ghost

@Megatronic79 Can you help us here?

rodrigok avatar Feb 12 '16 19:02 rodrigok

So the issue is with users that say belong to a group within a group not authenticating?

Such as domain.com (OU) > groups (OU) > ROCKET_CHAT > SUBGROUP (users live here) ?

Megatronic79 avatar Feb 12 '16 19:02 Megatronic79

Right. Say, ldap authentification is enabled for a group ROCKETCHAT. Users that belong to that group (are direct members of this group) can authenticate. If you now add a group VIPUSER as a member to the group ROCKETCHAT, the members of VIP can't authenticate...

ghost avatar Feb 12 '16 20:02 ghost

Ok thanks for the confirmation @finius we can look at that one.

Megatronic79 avatar Feb 12 '16 20:02 Megatronic79

Hi guys, do we know if this is still an issue?

engelgabriel avatar Mar 04 '16 16:03 engelgabriel

This is not a problem with RocketChat, but with the LDAP search. To correct this you can use Matching Rule OID. For this case change MemberOf=SG to MemberOf:1.2.840.113556.1.4.1941:=SG Where SG is the parent security group.

See https://msdn.microsoft.com/en-us/library/aa746475(VS.85).aspx for more information.

I found this from http://stackoverflow.com/questions/6195812/ldap-nested-group-membership

plutz avatar May 24 '16 15:05 plutz

@plutz thanks for the info, will review and see i it helps our issue.

EmmanuelTsouris avatar Jun 14 '16 15:06 EmmanuelTsouris

@plutz solution worked for me.

rndmh3ro avatar May 03 '17 10:05 rndmh3ro

Closing this for @plutz solution. If the problem persists, please reopen this with updated details. Thanks!

MartinSchoeler avatar Jul 12 '17 16:07 MartinSchoeler