[Date Prev][Date Next] [Chronological] [Thread] [Top]

ldapsearch problems (ITS#2490)

Full_Name: Peter Marschall
Version: 2.1.17
OS: Linux 2.4.16
Submission from: (NULL) (

I am facing problems with ldapsearch.
When doing a really large search (50.000 entries, 40 MByte) against a directory
ldapsearch behaves different when the output is redirected to a file and when
the output goes to the screen.
In the first case (output redirected to a file) ldapsearch fails with the error
   ldap_result: Can't contact LDAP server (81)
after reading only a part of the expected results.
In the second case (output goes to the screen), the results are the full results
of the search.

A trace with Ethereal shows shows that in the former case ldapsearch sends an
undbind request too early and does not accept the still incoming search results
any more.
I guess the "while ((rc = ldap_result(..) > 0)" loop ends prematurely because
processing of the results is faster than the delivery of new results.

The problem only occurs on fast machines (Dual PIII 1200 with RAID5), on slower
machines (Notebooks) everything works O.K. With the previously installed version
2.0.23 the problem did not exist.