nginx-auth-ldap
nginx-auth-ldap copied to clipboard
LDAP connection (connect/bind/request) configurable timeouts
At the moment the timeout for LDAP operations are hardcoded to 5 sec (bind), 10 sec (connect, request), causing failures in case of peaks of calls and slow LDAP server.
These timeouts needs to be configurable on an LDAP Server basis as you may want to graceful fail to other servers in the list, based on their response time.
Example config (connect=30s, bind=15s, request=20s):
ldap_server myldap {
url ldap://myldap.org/CN=users,CN=accounts,DC=myorg?uid?sub?(objectClass=person);
connections 10;
connect_timeout 30s;
bind_timeout 15s;
request_timeout 20s;
require valid_user;
}
What's the status on this? Wish to use this with duo 2fa but timeouts are too short
I believed this can be closed, since #68 has been merged?