https://bugs.openldap.org/show_bug.cgi?id=9400
--- Comment #1 from Howard Chu hyc@openldap.org --- (In reply to tero.saarni from comment #0)
Problem description
Thanks for the detailed report, fixed now in git master.
Will probably move your test into the regression tests, not the main set.
I'm using slapd-ldap to proxy for a remote LDAP server. LDAP backend is configured to:
- allow user binds that are passed directly to the remote LDAP server
- allow local user binds that are mapped to remote bind using idassert-bind
The problem happens when remote LDAP server abruptly disconnects the (idle) LDAP connection. For example, next search operation will fail with error:
Server is unavailable (52) Additional information: misconfigured URI?
The operation will succeed when repeating it for second time.
Reproducing the problem
I created a test case that reproduces the problem
https://git.openldap.org/tsaarni/openldap/-/compare/master...ldap-back-retry... fail
Possibly the same problem have been discussed also earlier, for example