s3/ldap: delay the ldap search alarm termination a bit
authorBjörn Jacke <bj@sernet.de>
Thu, 4 Aug 2011 14:42:37 +0000 (16:42 +0200)
committerBjoern Jacke <bj@sernet.de>
Fri, 5 Aug 2011 09:32:09 +0000 (11:32 +0200)
commitfd06cf379ded801adf830499c24875a7c60280be
tree35fb2dc0652d0b1d41d73a9cefe10fd9136c857e
parenta7438cce4e99761303aca0ef1bc65ca2cdf2bb98
s3/ldap: delay the ldap search alarm termination a bit

do the alarm termination of the the ldap search a bit delayed so the LDAP
server has a chance to tell us that the time limit was reached and the
search was abandoned. If the search is terminated this way we also get
the correct LDAP return code in the logs. If alarm() stops the search the ldap
search routine will report that the LDAP server is down which would trigger us
to rebind to the server needlessly which we also want to avoid.
source3/lib/smbldap.c