On 14/3/05 9:49 am, Marc Chantreux <[EMAIL PROTECTED]>
wrote:
> Hi Chris and thanks for help again !
>
> Chris Ridd wrote:
>> The bytes we're logging are garbage, which is why the decode is failing.
>
> hm ? is there an unexpected disconnection ?
I was thinking that the bytes we received were fine, but they are getting
munged by something inside perl and hence we log "garbage".
>> There were bugs using broken versions of perl and Convert::ASN, so you could
>> first make sure you're running the latest and greatest Convert:ASN and
>> Net::LDAP (I can't remember which modules had the problems. Upgrade 'em both
>> for luck :-) and you could also consider upgrading perl to one with fewer
>> utf8 bugs.
>
> i've already verfied at cpan but i think that i'm up to date :
>
> # dpkg-query -W --showformat='${Package}\t: ${Version}\n' perl
> libnet-ldap-perl libconvert-asn1-perl
> perl : 5.8.4-6
> libnet-ldap-perl : 0.3202-2
> libconvert-asn1-perl : 0.18-1
>
>> If you can't upgrade perl, try setting LOCALE=C in your environment before
>> running your script.
>
> i've just tried but it failed too.
I think that is the right environment variable...
> I'm reading documentations about BER and ASN.1 and hope you can help me.
Can you do a tcpdump (or use ethereal) to verify the bytes on the network
are the ones we're logging?
Cheers,
Chris