-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Fix multiple LDAP configuration support by fixing AccessFactory #37903
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
Conversation
It must not reuse the same OCA\User_LDAP\User\Manager instance for several Access instances. Signed-off-by: Côme Chilliet <[email protected]>
|
/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 <[email protected]>
szaimen
left a comment
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.
🐘
| $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 <[email protected]>
Summary
PR #34772 broke the fix from PR #35070 because AccessFactory was reusing the same Manager instance for all access instances.
Checklist