nginx-auth-ldap icon indicating copy to clipboard operation
nginx-auth-ldap copied to clipboard

LDAP connection (connect/bind/request) configurable timeouts

Open lucamilanesio opened this issue 10 years ago • 2 comments

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;
}

lucamilanesio avatar Jan 14 '15 10:01 lucamilanesio

What's the status on this? Wish to use this with duo 2fa but timeouts are too short

mr-romeijn avatar Dec 13 '16 16:12 mr-romeijn

I believed this can be closed, since #68 has been merged?

drakkhen avatar Jun 12 '17 13:06 drakkhen