On Wednesday, Jul 9, 2003, at 08:11 US/Pacific, Miroslav Zubcic wrote:


Thanks for your response Chris;

Chris Ridd <[EMAIL PROTECTED]> writes:

On 7/7/03 3:23 pm, Miroslav Zubcic <[EMAIL PROTECTED]> wrote:

I think I found bug in Net::LDAP in the part which is doing something
with ASN.1 (Convert::ASN1).

The current version of Convert::ASN1 (0.19) has some bug fixes for utf8

Where I can find Convert::ASN1 0.19? On CPAN I see only 0.17, and on
google I cannot find 0.19 ... looks like the latest version is 0.17. :-\

Chris has been staring into his crystal ball again, 0.17 is the latest.




support in perl >= 5.8. Either upgrade to that, or try setting your LANG
environment variable so it doesn't include 'utf8'. (On Red Hat you can do
this for all users in /etc/sysconfig/i18n.)

It's not Red Hat but SunOS 5.9 (but this is probably not important in this case) and in my initial mail I have said that I *must* convert/mangle (some, but some not) utf8 strings to ascii, and that tr/// is not working without "use encoding 'utf8'". But _with_ utf8 I get "Bad ASN PDU" from

/usr/local/lib/perl5/site_perl/5.8.0/Convert/ASN1/IO.pm

So I'm stuck here.

Question: is it safe to just comment out this sanity check in IO.pm?

    elsif (!$len && !$tch) {
      die "Bad ASN PDU" unless $depth;
      unless (--$depth) {
        last;
      }
    }

... or somebody must fix bug in $ldap->search in Net::LDAP?

That looks like it is in the code reading a packet from the network, which is
a different problem to the one Chris is refering to.


Can you turn on debug with Net::LDAP by passing debug=>15 and post what it reports
that it read just before the error


Graham.



Reply via email to