[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
(ITS#3897) LDAP_OPT_NETWORK_TIMEOUT cannot be set from ldap.conf
Full_Name: Tom Maher
Version: HEAD, 2.3.4, 2.2.27
OS: FreeBSD
URL: http://www.eecs.berkeley.edu/~tmaher/openldap/tmaher-050726.ext
Submission from: (NULL) (128.32.34.214)
In libraries/libldap/options.c, an ldap_set_option() on the
LDAP_OPT_NETWORK_TIMEOUT currently provides a nice way to set a timeout on the
initial client attempt to connect() to the server. However, there is no
corresponding code in libraries/libldap/init.c which would allow a system
administrator to set that value using ldap.conf. Allowing the sysadmin to set a
very short timeout would be extremely useful in the case of a site with
redundant LDAP servers, in that the failure of the first listed in the URI
variable would not result in long lags for client systems.
I've written a trivial patch to init.c, creating the variable ldap.conf variable
NETWORKTIMEOUT, which provides the above-described functionality. My patch also
includes a small edit to doc/man/man5/ldap.conf.5, which describes the variable,
and contrasts it with the existing TIMELIMIT variable. The patch available at
http://www.eecs.berkeley.edu/~tmaher/openldap/tmaher-050726.ext
and is against the cvs HEAD of openldap-src as of a few minutes ago.