Home Man
Today's Posts

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:
Select Section of Man Page:
Select Man Page Repository:

CentOS 7.0 - man page for net::ldap::control (centos section 3)

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_MATCHEDVALS );

	$ctrl = Net::LDAP::Control->new(
	  type	   => "",
	  value    => "help",
	  critical => 0

	$mesg = $ldap->search( @args, control => [ $ctrl ]);

	$ctrl = Net::LDAP::Control->new( type => LDAP_CONTROL_MATCHEDVALS );

       "Net::LDAP::Control" is a base-class for LDAPv3 control objects.

       new ( ARGS )
	   ARGS is a list of name/value pairs, valid arguments are:

	       A boolean value, if TRUE and the control is unrecognized by the server or is
	       inappropriate for the requested operation then the server will return an error and
	       the operation will not be performed.

	       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.

	       A dotted-decimal representation of an OBJECT IDENTIFIER which uniquely identifies
	       the control. This prevents conflicts between control names.

	       This may be omitted if the contructor is being called on a sub-class of
	       Net::LDAP::Control which has registered to be associated with an OID.  If the
	       contructor 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.

	       Optional information associated with the control. Its format is specific to the
	       particular control.

       from_asn ( ASN )
	   ASN is a HASH reference, normally extracted from a PDU. It will contain a "type"
	   element and optionally "critical" and "value" elements. On return ASN will be blessed
	   into a package. If "type" is a registered OID, then ASN will be blessed into the
	   registered package, if not then ASN will be blessed into Net::LDAP::Control.

	   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.

       error ()
	   If there has been an error returns a description of the error, otherwise it will
	   return "undef"

       init ()
	   "init" will be called as the last step in both contructors. What it does will depend
	   on the sub-class. It must always return the object.

       register ( OID )
	   "register" is provided for sub-class implementors. It should be called as a class
	   method on a sub-class of Net::LDAP::Control with the OID that the class will handle.
	   Net::LDAP::Control will remember this class and OID pair and use it in the following

	   o   "new" is called as a class method on the Net::LDAP::Control package and OID is
	       passed as the type. The returned object will be blessed into the package that
	       registered the OID.

	   o   "new" is called as a class method on a registered package and the "type" is not
	       specified. The "type" will be set to the OID registered by that package.

	   o   "from_asn" is called to construct an object from ASN. The returned object will be
	       blessed into the package which was registered to handle the OID in the ASN.

       ( to_asn )
	   Returns a structure suitable for passing to Convert::ASN1 for encoding. This method
	   will be called by Net::LDAP when the control is used.

	   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.

       valid ()
	   Returns true if the object is valid and can be encoded. The default implementation for
	   this method is to return TRUE if there is no error, but sub-classes may override that.

       Net::LDAP Net::LDAP::Control::Assertion 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::Sort
       Net::LDAP::Control::SortResult Net::LDAP::Control::SyncDone
       Net::LDAP::Control::SyncRequest Net::LDAP::Control::SyncState Net::LDAP::Control::VLV

       Graham Barr <gbarr@pobox.com>

       Please report any bugs, or post any suggestions, to the perl-ldap mailing list

       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.

perl v5.16.3				    2013-06-07			    Net::LDAP::Control(3)

All times are GMT -4. The time now is 07:46 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
Show Password

Not a Forum Member?
Forgot Password?