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

[stable20] fix potential unwarranted memberships in nested groups from LDAP #30342

Merged
merged 1 commit into from
Dec 30, 2021

Conversation

backportbot-nextcloud[bot]
Copy link

backport of #29329

@artonge
Copy link
Contributor

artonge commented Dec 30, 2021

/rebase

- the issue was present only when using PHP based resolving of nested
  group members. Normally nested members are common in AD (and Samba4) and
  are resolved per LDAP_MATCHING_RULE_IN_CHAIN by default
- resolving nested members is recursive
- when the cache entry was created it happend for intermediate groups, too,
  containing members from the parent group
- the check was added to only cache the root group with its members
- a runtime cache stores intermediate ldap read results


Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@artonge
Copy link
Contributor

artonge commented Dec 30, 2021

CI failure is unrelated.

@artonge artonge merged commit a0a7815 into stable20 Dec 30, 2021
@artonge artonge deleted the backport/29329/stable20 branch December 30, 2021 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants