Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Net::LDAP::Control::VLV 0.34

    Download button

    No screenshots available
    Downloads: 1,043  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Graham Barr | More programs
    Perl Artistic License / FREE
    August 14th, 2007, 22:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Net::LDAP::Control::VLV description

    Net::LDAP::Control::VLV is an LDAPv3 Virtual List View control object.

    Net::LDAP::Control::VLV is an LDAPv3 Virtual List View control object.

    SYNOPSIS

    use Net::LDAP;
    use Net::LDAP::Control::VLV;
    use Net::LDAP::Constant qw( LDAP_CONTROL_VLVRESPONSE );

    $ldap = Net::LDAP->new( "ldap.mydomain.eg" );

    # Get the first 20 entries
    $vlv = Net::LDAP::Control::VLV->new(
    before => 0, # No entries from before target entry
    after => 19, # 19 entries after target entry
    content => 0, # List size unknown
    offset => 1, # Target entry is the first
    );
    $sort = Net::LDAP::Control::Sort->new( order => 'cn' );

    @args = ( base => "o=Ace Industry, c=us",
    scope => "subtree",
    filter => "(objectClass=inetOrgPerson)",
    callback => &process_entry, # Call this sub for each entry
    control => [ $vlv, $sort ],
    );

    $mesg = $ldap->search( @args );

    # Get VLV response control
    ($resp) = $mesg->control( LDAP_CONTROL_VLVRESPONSE ) or die;
    $vlv->response( $resp );

    # Set the control to get the last 20 entries
    $vlv->end;

    $mesg = $ldap->search( @args );

    # Get VLV response control
    ($resp) = $mesg->control( LDAP_CONTROL_VLVRESPONSE ) or die;
    $vlv->response( $resp );

    # Now get the previous page
    $vlv->scroll_page( -1 );

    $mesg = $ldap->search( @args );

    # Get VLV response control
    ($resp) = $mesg->control( LDAP_CONTROL_VLVRESPONSE ) or die;
    $vlv->response( $resp );

    # Now page with first entry starting with "B" in the middle
    $vlv->before(9); # Change page to show 9 before
    $vlv->after(10); # Change page to show 10 after
    $vlv->assert("B"); # assert "B"

    $mesg = $ldap->search( @args );

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    LDAPv3 Virtual List | object control | Perl module | LDAP | control | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM