-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Contd: Add layer on top of LDAP methods to catch server disconnects and attempt re-connection #5104
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
…e was a generic way to pass by reference with call_user_func_array.. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz, thanks for your PR! By analyzing the history of the files in this pull request, we identified @MorrisJobke, @LukasReschke and @Xenopathic to be potential reviewers. |
Thanks @blizzz, I'll test this tonight. |
Unfortunately the |
Possible solutions: (1) don't use this method against the invoker, because it is fired very soon after an LDAP operation took place. An idleTimeout sould not be effective here. (2) expect the command name, accept ALL attributes as references ( For simplicity I'd go with (1), although I first liked the second more at first. The final solution for 13 could adopt this. |
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Codecov Report
@@ Coverage Diff @@
## master #5104 +/- ##
============================================
+ Coverage 54.14% 54.15% +<.01%
- Complexity 22283 22289 +6
============================================
Files 1379 1379
Lines 85337 85361 +24
Branches 1322 1322
============================================
+ Hits 46209 46227 +18
- Misses 39128 39134 +6
|
I created a backport to stable11 #5128 stable12 upcoming, but this is far easier as the code base is pretty much the same as master |
Tests succeeds, only |
Tested successfully by @bline as stated #5128 (comment) Still need a reviewer @nextcloud/ldap :) |
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.
Makes sense 👍
@karlitschek btw, backport OK? Down to 11? |
missing backport to 12: #5210 |
nice. definitely backport to 12 and 11 |
Continuation of #4992
@bline I signed-off your commits so this test passes :) Please test whether my changes still work for you.
For Nc 13 we should aim for a cleaner solution, but this requires architectural changes. Alas, we need to backport it, so let's get this is as an intermediate step.
Fixes LDAP Server caused timeout with long-running processes where there is a too big gap between LDAP calls.