I use Net::LDAP in a script that does a daily search on a large LDAP database (~80,000 entries). The expected return from the search is ~2000 entries. One run of the script threw up this error:
my $mesg = $ldap->search(base=>...); $mesg->error was "I/O Error Connection reset by peer"
I dont think this has anything to do with an ldap search size limit. For one thing, I expect to get a "sizelimit exceeded" error in that case and I have error-handling for that and the other thing is that I dont expect to exceed the size limit.
I use Net::LDAP 0.2701 with Perl 5.6.1 on Solaris 5.8. The ldap server is IDDS 4.5.3 (Innosoft).
I found a similar posting but with no solution on the perl-ldap-dev list on Oct 16 2002 (Graham Barr replies on Oct 17) in which the writer gets the same error while doing a search. He uses a different OS, different ldap server and I would assume a smaller db. Snip from his mail:
http://www.geocrawler.com/archives/3/3482/2002/10/0/
"Redhat 7.2 > > Perl 5.6.1 > > perl-ldap 0.26 > > Convert::BER 1.31 ( I updated it because I read it could be guilty) > > the server is a Windows 2000 Advanced server SP2"
Any idea what this error means and how I can prevent it from recurring?
thanks, Reena
Reena John
