develooper Front page | perl.ldap | Postings from January 2012

Re: Problem with Net::LDAP::Control::Paged and Oracle InternetDirectory

Thread Previous | Thread Next
From:
Chris Ridd
Date:
January 19, 2012 05:22
Subject:
Re: Problem with Net::LDAP::Control::Paged and Oracle InternetDirectory
Message ID:
F3DAA5C9-5CC0-4F61-B058-B7D9A8A0606B@mac.com

On 19 Jan 2012, at 12:39, John Devitofranceschi wrote:

> Two bugs! Such a deal!

No extra charge :-)

> Yes, the cookie setting code is in the while (1) loop and the callback merely prints out the dn of the returned entries.

You mentioned that the OpenLDAP ldapsearch command-line tool seemed to work. Can you double-check it is getting multiple pages back (try using pr=2/prompt), or whether it is stopping after the first page because of the misplaced result cookie?

The only other difference I can see between your ldapsearch args and your Net::LDAP code is that the control's criticality is different. Does varying that affect things?

> Thanks very much for the quick analysis. I'll need to add dumpasn1 to my bag of tricks!

You can get Net::LDAP to output something similar to dumpasn1's using $ldap->debug(8). The value is a bitmask, and the bits are described in the Net::LDAP man page. But dumpasn1 is a handy tool to have around anyway.

Cheers,

Chris

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About