-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for user group syncing with groupOfUniqueNames using openLDAP #15993
Comments
Hello. I am using ldap group sync with AD, and have there there is a small problem, and it is described here #15673 But.. this is works and i'am using default settings: //Ldap Group BaseDN is OU, which includes user groups //Mapping users roles, example here //Mapping groups, example here //Setiing are "Auto remove user roles" and "Auto remove user from channel" - set to true and... powershell script, which parsing user groups and writing memberUid. |
You are using a different way to handle groups. I am using uniqueMember which contains the whole dn. Also I run Linux ;) I could in theory auto-generate a second way of handling groups using |
I've tried different ways, but this method (with the powershell script and default settings for FilterGroupUsers) are works more than 4 months :) Are you using OpenLDAP? if so, add the topic information about it :) |
Apparently userdn is not being used according to the sources: https://github.com/RocketChat/Rocket.Chat/blob/develop/app/ldap/server/sync.js Other than that I have confirmed my filter are working in theory (trying it in phpldapadmin). However I do not see any reason why it doesn't work in rocketchat. Is there any sanitation or string filtering going on which might break the ldap filter string? |
Okay after some more debugging. I found out that the request for user group membership does not appear in the logs at all for some reason. I set the logging level to trace, still I cannot seem to catch any request to filter groups. I only found one from 2 days ago. Are the user groups only synced the first time someone logs in? I click on the "sync now" button but nothing happens according to the logs. |
Okay it works. The issue was that the button for synchronizing data did not actually synchronize the ldap group to channel mapping. Only the cron job did this. You can close this now. |
@ClundXIII Did you also solve the initial problem? |
@bbreijer
|
Hello,
it seems like there is no (obvious) support for using groupOfUniqueNames (with openLDAP) to sync groups and stream membership. Apparently the filter at the bottom (for only allowing certain user to log in I guess?) does indeed support it.
I am using the ou containing all group as the content of "group base dn" and tried
(&(cn=#{groupName})(uniqueMember=#{userdn}))
and(&(cn=#{groupName})(uniqueMember=#{username},ou=<full ou / dc path>))
for the filter itself.
Any idea what the correct syntax would be?
The text was updated successfully, but these errors were encountered: