Skip to content
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

ldap group membership background job should also throw pre_addToGroup… #22664

Closed
wants to merge 1 commit into from

Conversation

blizzz
Copy link
Contributor

@blizzz blizzz commented Feb 26, 2016

…, because sharing listens to it. Fixes #21986.

Reason for this PR is #21854 (comment), however looking at the code, this hook should have been fired before. Nevertheless, sharing worked. Now I wonder whether this is really needed, but I still guess so.

As brief excursion: At some time in the past sharing listened to addToGroup and RemoveFromGroup hooks for updating the shares. Because with LDAP we do not when a member is added or removed from a group, we have a background job that updates the members and throws hooks, if necessary.

@schiesbn @MorrisJobke @rullzer what do you think?

@rullzer
Copy link
Contributor

rullzer commented Feb 26, 2016

While I think this should all be fine. It is a bit weird from a semantic point of view. Because the group is already there. So if there is any logic that assumes the group is not that will fail.

@blizzz
Copy link
Contributor Author

blizzz commented Feb 26, 2016

<Blizzz> BeS: i.e. #22664 is unnecessry?
<Blizzz> less code, better.
<BeS> Blizzz: yes, it is probably not unnecessry. But please double-check
<BeS> 1. share a file test.txt with a group
<BeS> 2. create a file text.txt for a user who is not in the group
<BeS> 3. add the user to the group
<BeS> 4 login as the user and check the the group share is mounted as test.txt (2)
<Blizzz> BeS: I will try this, thx.

→ Tested, works without this PR, thus closing.

@lock
Copy link

lock bot commented Aug 7, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[LDAP] throw pre_addToGroup hooks
3 participants