I'd like to add retries to mitigate LDAP failures. Our internal LDAP server isn't 100% reliable. When a LDAP failure happens, the "reverse proxy" plugin would log out the issue for 15 minutes. This is a bad user experience. Adding retries should mitigate this issue.
Let me know if this proposal is acceptable. If so, I'll try to submit a real pull request. Thanks!