Net::LDAP::Control(3) | User Contributed Perl Documentation | Net::LDAP::Control(3) |
Net::LDAP::Control - LDAPv3 control object base class
use Net::LDAP::Control; use Net::LDAP::Constant qw( LDAP_CONTROL_MANAGEDSAIT ); my $req_ctrl1 = Net::LDAP::Control->new( type => LDAP_CONTROL_MANAGEDSAIT ); my $req_ctrl2 = Net::LDAP::Control->new( type => "1.2.3.4", value => "help", critical => 0 ); $mesg = $ldap->search( @args, control => [ $req_ctrl1, $req_ctrl2 ]); my @res_ctrls = $mesg->control();
"Net::LDAP::Control" is the base-class for LDAPv3 control objects.
Controls provide a mechanism that allows one to extend the semantics and arguments of LDAP operations. Controls may be attached to LDAP operations, and only affect the semantics of the operation they are attached to.
Controls sent by clients are termed request controls, and are set using the "control" option of the respective LDAP operations. Controls sent by servers are called response controls, they can be found using the "control()" method of the response message objects.
Servers announce the controls they support in the attribute "supportedControls" in their RootDSE.
If FALSE and the control is unrecognized by the server or is inappropriate for the requested operation then the server will ignore the control and perform the requested operation as if the control was not given.
If absent, FALSE is assumed.
This may be omitted if the constructor is being called on a sub-class of Net::LDAP::Control which has registered to be associated with an OID. If the constructor is being called on the Net::LDAP::Control package, then this argument must be given. If the given OID has been registered by a package, then the returned object will be of the type registered to handle that OID.
This constructor is used internally by Net::LDAP and assumes that HASH passed contains a valid control. It should be used with caution.
In addition to the methods listed below, each of the named parameters to "new" is also available as a method. "type" will return the OID of the control object. "value" and "critical" are set/get methods and will return the current value for each attribute if called without arguments, but may also be called with arguments to set new values.
The base class implementation of this method will call the "value" method without arguments to allow a sub-class to encode it's value. Sub-classes should not need to override this method.
Net::LDAP, Net::LDAP::RootDSE, Net::LDAP::Control::Assertion, Net::LDAP::Control::DontUseCopy, Net::LDAP::Control::EntryChange, Net::LDAP::Control::ManageDsaIT, Net::LDAP::Control::MatchedValues, Net::LDAP::Control::Paged, Net::LDAP::Control::PasswordPolicy, Net::LDAP::Control::PersistentSearch, Net::LDAP::Control::PostRead, Net::LDAP::Control::PreRead, Net::LDAP::Control::ProxyAuth, Net::LDAP::Control::Relax, Net::LDAP::Control::Sort, Net::LDAP::Control::SortResult, Net::LDAP::Control::SyncDone, Net::LDAP::Control::SyncRequest, Net::LDAP::Control::SyncState, Net::LDAP::Control::VLV, Net::LDAP::Control::VLVResponse
Graham Barr <gbarr@pobox.com>
Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap@perl.org>
Copyright (c) 1999-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.
2015-04-08 | perl v5.34.0 |