If "ldap timeout" is non-zero, set the local search timeout to
commit92a655da8633ab99c2a3fa75b3a55ffd8b4ef430
authorJeremy Allison <jra@samba.org>
Sat, 20 Aug 2011 01:43:51 +0000 (19 18:43 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 20 Aug 2011 01:43:51 +0000 (19 18:43 -0700)
treea63a77f26bbc870d783c544bd6838fca34248aab
parentf6e3484ba6350204cee0e0a85500b5ebb22fa4db
If "ldap timeout" is non-zero, set the local search timeout to
be one second longer than the remote search timeout (which is
set to the "ldap timeout" value). This allows the remote search
timeout to fire in preference.

Allow lp_ldap_timeout() to be zero. Don't set the any local alarm
if so.
source3/libads/ldap.c