-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix multiple LDAP configuration support by fixing AccessFactory #37903
Conversation
It must not reuse the same OCA\User_LDAP\User\Manager instance for several Access instances. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
/backport to stable26 |
This comment was marked as outdated.
This comment was marked as outdated.
Tested this patch, it solves the issue on NC 26 |
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐘
@@ -55,7 +53,7 @@ public function get(Connection $connection): Access { | |||
return new Access( | |||
$connection, | |||
$this->ldap, | |||
$this->userManager, | |||
Server::get(Manager::class), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment to explain why we do not use DI? It will help to not revert in the future.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Summary
PR #34772 broke the fix from PR #35070 because AccessFactory was reusing the same Manager instance for all access instances.
Checklist