Univention Bugzilla – Bug 48721
At two places uldap uses ReconnectLDAPObject with default retry_max=1
Last modified: 2021-05-03 21:58:58 CEST
Created attachment 9850 [details] retry_ReconnectLDAPObject.patch I just grepped though our UCS repo and found two cases (in both uldap.py modules) where ReconnectLDAPObject is used with the default value of 1 for retry_max. In that case the reconnect is tried immediately after the initial connect failed, without any waiting. See attached patch proposal.
I just noticed a "time.sleep(60)" within the diff. Isn't that a little redundant now?
We should also check if the change negatively affects code outside the lib (e.g. longer runtime because the exception is now thrown after 10 unsuccessful attempts).