From: Eric N. <eni...@cp...> - 2001-05-24 16:18:45
|
I'm trying to use Net::LDAP::Control::Paged with ActiveDirectory. I checked the DSA record and it supports paging: supportedControl: 1.2.840.113556.1.4.319 I used the example exactly and it worked. On a whim I dialed the page size back to 5 and ran it again. I found that I only got 5 objects. The issue seems to be in the lines: # Get cookie from paged control my($resp) = $mesg->control( LDAP_CONTROL_PAGED ) or last; $cookie = $resp->cookie or last; For some reason $resp dosen't get assigned. I did a dump using Data::Dumper - print Dumper($msg->control) I got: $VAR1 = bless( { 'value' => '0♣☻☺ ♦ ', 'type' => '1.2.840.113556.1.4.319' }, 'Net::LDAP::Control::Paged' ); When I ran Dumper on $mesg->control( LDAP_CONTROL_PAGED ) I got: $VAR1 = 1; Obviously the data is in the control part but I can't seem to get it out correctly. Any assistance would be greatly appreciated! |