From: Chris R. <chr...@me...> - 2001-01-29 11:40:42
|
Guruprasad S <sgu...@no...> wrote: > Hi, > I am running Perl5.6.0 on NT. Whenever I build with USE_MULTI > uncommented and USE_ITHREAD commented, I can access the directory. But > when I uncomment UCS_ITHREAD as well, my script fails by saying > > decode error at c:/perl/site/5.6.0/lib/Convert/ASN1/_decode.pm line 136. > 84 > decode error at c:/perl/site/5.6.0/lib/Convert/ASN1/_decode.pm line 136. > ...propagated at ldap1.pl line 12. > > Can any of you help me out. > > My script looks like this: > > use Net::LDAP; > $ldap = Net::LDAP->new('blr-nb7.blr.novell.com') or die "$@"; > > $mesg = $ldap->bind or die "Failed to bind\n"; > if ($mesg->code) { > print $mesg->error, $mesg->code,"\n"; > die; > } > > $mesg = $ldap->search( # perform a search > base => "o=novell", > filter => "sn=*", > ) or die "Failed to search\n"; > > if ($mesg->code) { > print $mesg->error, $mesg->code,"\n"; > die; > } > > > Thanks > Guru > > Net::LDAP is known to trigger problems in perl 5.6, so it is probably best to avoid that combination for now :-( Can you set debug => 3 in the call to new and send us the screen output? This debug setting will dump out all the PDUs sent and received, in hex. This should make it easier to reproduce the problem. Cheers, Chris |