From: <rm...@ds...> - 2002-10-17 12:42:10
|
Hi Graham, Thanks for your suggestion,I added it to the code and I executed : my $m = $ldap->search( base => $base, attrs => ['dn'] , callback => sub { $_[0]->shift_entry }, filter => "sAMAccountName=*"); and the result was the same I/O Error. I tried the next shell command on the same machine: ldapsearch -x -P 2 -H ldaps://ldapserver "ou=,...,dc=com" "sAMAccountName=*" with openldap-2.0.21-1, and it worked ok, returning 482 entries, so I think the problem may be caused by the perl code. Thanks. Mensaje citado por Graham Barr <gb...@po...>: > On Wed, Oct 16, 2002 at 01:35:29PM +0200, rm...@ds... wrote: > > > > Hi all, > > > > I get an I/O Error when executing this code: > > > > $ldap = Net::LDAPS->new($ldapserver, > > port => '636', > > verify => 'none', > > ); > > my $m = $ldap->search( base => $base, > > attrs => ['dn'] , > > filter => "(sAMAccountName=*)"); > > > > > I use: > > 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 > > Hm, We have had this reported before on win2k. I have this funny feeling > that if we dont read the packets fast enough it triggers an issue in thier > tcp stack > which results in an io error. > > What happenes of you add > > callback => sub { $_[0]->shift_entry } > > to the search arguments ? > > Graham. > ######################################################################## Rafa Martinez Diaz ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ |