Net::LDAP::Control::Subentries(3pm)

Net::LDAP::Control::Subentries3pm

Ldapv3 subentries control object

Usage

 use Net::LDAP;
 use Net::LDAP::Control::Subentries;
 $ldap = Net::LDAP->new( "ldap.mydomain.eg" );
 $subentries = Net::LDAP::Control::Subentries->new( visibility => 1 );
 $msg = $ldap->search( base => 'dc=sub,dc=mydomain,dc=eg",
                       filter => '(objectclass=*)',
                       attrs => [ qw/1.1/ ],
                       control => [ $subentries ] );
 die "error: ",$msg->code(),": ",$msg->error()  if ($msg->code());

Overview

"Net::LDAP::Control::Subentries" provides an interface for the creation and manipulation of objects that represent the "Subentries" control as described by RFC 3672.

This control, for which no corresponding response control exists, is appropriate for LDAP search operations only.

In absence of this control, subentries are visible only to LDAP search requests with "scope => 'base'", but not to searches with any other "scope" value.

Constructor arguments

In addition to the constructor arguments described in Net::LDAP::Control the following are provided:

visibility

A Boolean value indicating the visibility of subentries or regular entries.

The value "TRUE" indicates that subentries are visible and normal entries are not; the value "FALSE" indicates that normal entries are visible and subentries are not.

Methods

As 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.

Releases

4 releases since Debian 11 (Bullseye); the text changed 1 time.

  1. 11–13
  2. Arch

Author

Peter Marschall <[email protected]>.

Please report any bugs, or post any suggestions, to the perl-ldap mailing list <[email protected]>

From perl-ldap 0.68-8 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.