Group Sync with OpenLDAP not working

Hi All,

On my rocket.chat server, user sync is working now. However, when trying to sync groups to channels, I got stuck.

Directories of users are in this format: uid=username,ou=People,dc=abc,dc=com
Directories of groups are in this format: cn=groupname,ou=Group,dc=abc,dc=com

And attributes of a group is as below:
objectClass: groupOfUniquenames
objectClass: top
cn: groupname
uniqueMember: uid=user1,ou=People,dc=mineloader,dc=com
uniqueMember: uid=user2,ou=People,dc=mineloader,dc=com
uniqueMember: uid=user3,ou=People,dc=mineloader,dc=com

Though I’ve tried several filters, however, none of them works.

Can anyone help me on how to set User Group Filter and LDAP Group BaseDN to make it work?

Thanks a lot!

Hello,

I can help you with this issue. Please connect with me at skype “shweta.jain@consagous.com"

Thanks

It seems to be solved by myself.

  1. The memberof overlay is necessary.
  2. User Group Filter should be in this format: (&(objectClass=inetOrgPerson)(memberof=cn=#{groupName},ou=Group,dc=xxxx,dc=xxxx)(uid=#{username}))
  3. LDAP Group Channel Map should be something like this.
    {
    “dept-art-software”: “dept-art-software”,
    “dept-anim”: “dept-anim”
    }