Net::LDAP::Control::Paged - Online Linux Manual PageSection : 3
Updated : 2022-01-21
Source : perl v5.34.0
Note : User Contributed Perl Documentation

NAMENet::LDAP::Control::Paged − LDAPv3 Paged results control object

SYNOPSIS​ use Net::LDAP; ​ use Net::LDAP::Control::Paged; ​ use Net::LDAP::Constant qw( LDAP_CONTROL_PAGED ); ​ ​ $ldap = Net::LDAP−>new( "ldap.mydomain.eg" ); ​ ​ $page = Net::LDAP::Control::Paged−>new( size => 100 ); ​ ​ @args = ( base => "cn=subnets,cn=sites,cn=configuration,$BASE_DN", ​ scope => "subtree", ​ filter => "(objectClass=subnet)", ​ callback => \&process_entry, # Call this sub for each entry ​ control => [ $page ], ​ ); ​ ​ my $cookie; ​ while(1) { ​ # Perform search ​ my $mesg = $ldap−>search( @args ); ​ ​ # Only continue on LDAP_SUCCESS ​ $mesg−>code and last; ​ ​ # Get cookie from paged control ​ my($resp) = $mesg−>control( LDAP_CONTROL_PAGED ) or last; ​ $cookie = $resp−>cookie; ​ ​ # Only continue if cookie is nonempty (= we're not done) ​ last if (!defined($cookie) || !length($cookie)); ​ ​ # Set cookie in paged control ​ $page−>cookie($cookie); ​ } ​ ​ if (defined($cookie) && length($cookie)) { ​ # We had an abnormal exit, so let the server know we do not want any more ​ $page−>cookie($cookie); ​ $page−>size(0); ​ $ldap−>search( @args ); ​ }

DESCRIPTIONNet::LDAP::Control::Paged provides an interface for the creation and manipulation of objects that represent the pagedResultsControl as described by RFC 2696. The control is allowed on LDAP search requests (search in Net::LDAP) only. On other operations it will − depending on the value of the parameter ​critical − either be ignored or lead to errors.

CONSTRUCTOR ARGUMENTSIn addition to the constructor arguments described in Net::LDAP::Control the following are provided. cookie The value to use as the cookie. This is not normally set when an object is created, but is set from the cookie value returned by the server. This associates a search with a previous search, so the server knows to return the page of entries following the entries it returned the previous time. size The page size that is required. This is the maximum number of entries that the server will return to the search request.

METHODSAs with Net::LDAP::Control each constructor argument described above is also available as a method on the object which will return the current value for the attribute if called without an argument, and set a new value for the attribute if called with an argument.

SEE ALSONet::LDAP, Net::LDAP::Control, http://www.ietf.org/rfc/rfc2696.txt

AUTHORGraham Barr <gbarr@pobox.com> Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl−ldap@perl.org>

COPYRIGHTCopyright (c) 2000−2004 Graham Barr. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
0
Johanes Gumabo
Data Size   :   8,756 byte
man-Net::LDAP::Control::Paged.3pmBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 171,933
Visitor ID   :     :  
Visitor IP   :   18.119.119.119   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|Net::LDAP::Control::Paged.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|Net::LDAP::Control::Paged.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|Net::LDAP::Control::Paged.3pm|43|br══─}─══|'br══─}─══ )         (htmlprn|149|Net::LDAP::Control::Paged.3pm|43|'br══─}─══ |'br══─}─══ )