From: Graham B. <gb...@po...> - 2000-06-27 08:07:11
|
On Mon, Jun 26, 2000 at 08:18:34PM -0700, Allen, Robbie wrote: > Do the VLV.pm or Paged.pm modules work under Net::LDAP? If so, do you > have any examples? Both of these are still under developement, so feel free to give any feedback. Paged should work something like $paged = Net::LDAP::Control::Paged->new( size => 10 ); $mesg = $ldap->search( control => [ $paged ], .... ); $ctrl = $mesg->control( LDAP_CONTROL_PAGED ); $paged->cookie($ctrl->cookie) if $ctrl; $mesg = $ldap->search( control => [ $paged ], .... ); VLV takes these arguments $vlv = Net::LDAP::Control::VLV->new( before => $beforeCount, after => $afterCount, assert => $assertValue, offset => $offset, content => $contentCount, context => $contextID, # just noticed a bug that this is missing from new() ); If assert is present offset and content are not used. There are methods by the same names for setting the values. In the response you will get a LDAP_CONTROL_VLVRESPONSE which will have methods target, result, content and context Graham. |