r1588: This is one of the more pathetic patches I ever checked in. Many hours of
authorVolker Lendecke <vlendec@samba.org>
Mon, 26 Jul 2004 07:41:16 +0000 (07:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:16 +0000 (10:52 -0500)
commitec1bbbf85890dee1fa68046f5c7f15967536079e
treed0f32077fa98dc447cd27e0cbfad63fdeba2e036
parent2e6f3398d61237e04452530a1415f3e0bd8df3b5
r1588: This is one of the more pathetic patches I ever checked in. Many hours of
coding have passed, but I could not find a way to get the OpenLDAP libraries
to reliably time out on any of the queries we make, *and* get correct error
returns. No, async calls and ldap_result does NOT work, or I was simply too
stupid to correctly interpret the OpenLDAP manpage and source.

We can not allow to hang indefinitely in an ldap query, especially not for
winbindd. "ldap timeout" now specifies the overall timeout for the complete
operation, that's why I increased that to 15 seconds.

Volker
(This used to be commit 269f0750872e5f8757e0a9667e007a0410319fcd)
source3/include/smbldap.h
source3/lib/smbldap.c