Net::LD...entries(3)
π NAME π
Okay bestie, welcome to the Net::LDAP::Control::Subentries page from User Contributed Perl Documentation β the header is literally Net::LD...entries(3), iykyk. The actual main character is the LDAPv3 Subentries control object. π
β¨ SYNOPSIS β¨
Here's the whole vibe, code exactly as written:
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());
πΈ DESCRIPTION πΈ
Net::LDAP::Control::Subentries gives you an interface for the creation and manipulation of objects that represent the "Subentries" control, as described by RFC 3672. π¦
This control has no corresponding response control β like, none exists, periodt β and it's appropriate for LDAP search operations only. π₯
If you don't include this control, subentries are visible only to LDAP search requests with scope => 'base', but not to searches with any other scope value. That's the tea. π
π οΈ 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. Call it without an argument and it returns the current value for the attribute; call it with an argument and it sets a new value for the attribute. β¨
π SEE ALSO π
Net::LDAPNet::LDAP::Control
The original list ends with a lil trailing comma, bestie: Net::LDAP, Net::LDAP::Control, β and that's it. π«Ά
π AUTHOR π
Peter Marschall <peter@adpm.de>.
Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap@perl.org>
π COPYRIGHT π
Copyright (c) 2020 Peter Marschall. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Bye bestie! π This page's footer is perl v5.42.0, dated 2024-01-02, and it's the Net::LD...entries(3) page. Slay. π
π¦ where this page comes from
- opensuse-leap 16.0: perl-ldap 0.68-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms