For Programmers: Free Programming Magazines  


Home > Archive > LDAP > May 2006 > Re: LDAP_DECODING_ERROR:C<Net::LDAP> on SSL connection after a









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: LDAP_DECODING_ERROR:C<Net::LDAP> on SSL connection after a
Chris Ridd

2006-05-15, 8:13 am

On 15/5/06 11:55, Si Smith <simon.p.smith@googlemail.com> wrote:

> Hi,
>
> I am using Perl-ldap ( and excellent it is too ) to connect
> to an Active Directory. I am using an SSL connection since
> I do not want to pass the password in the clear.
>
> When reading a large sub-tree, in a number of pages, I get this
> error ( LDAP_DECODING_ERROR:C<Net::LDAP> ). If I change the page
> size it occurs after a different number of entries.
>
> e.g Page size 250 - after 20250 entries
> 50 - after 5400 entries
>
> If I make the connection without SSL there is no problem and
> all the records can be read without sign of the decoding error.
>
> Any clues anyone.


What sort of control are you using to get these results? We might have got
something wrong in there, like getting about byte/utf8. You could
try calling debug(15) to get hex dumps of all the result packets to see
what's different about the failing one.

Alternatively (worst case scenario) I wonder if something's happening at the
SSL level which we're (or IO::Socket::SSL or Net::SSLeay are) not dealing
with properly. If you don't get any insights from the debug output above,
can you attach a network sniffer like Ethereal and see anything interesting
happening around the times both connections go bad?

Cheers,

Chris


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com