Net::LD...rmediate(3)
π NAME π
Net::LDAP::Intermediate β LDAPv3 intermediate response object base class. This is the Net::LDAP::Intermediate(3) manual page from the User Contributed Perl Documentation, and yes bestie, it's giving very important base-class energy. π
β¨ SYNOPSIS β¨
use Net::LDAP::Intermediate;
π¦ DESCRIPTION π¦
Net::LDAP::Intermediate is a base-class for LDAPv3 intermediate response objects. That's the whole vibe: it's the parent class situation for these intermediate response objects, no cap. π«Ά
π CONSTRUCTORS π
new ( ARGS )
ARGS is a list of name/value pairs, and the valid arguments are:
responseNameβ a dotted-decimal representation of an OBJECT IDENTIFIER that uniquely identifies the intermediate response. This prevents conflicts between intermediate response names. Iconic little uniqueness check, honestly.responseValueβ optional information associated with the intermediate response. Its format is specific to the particular intermediate response. So like, don't expect one universal format, bestie. π
from_asn ( ASN )
ASN is a HASH reference, normally extracted from a PDU. It will contain a responseName element and optionally a responseValue element. On return ASN will be blessed into a package. If responseName is a registered OID, then ASN will be blessed into the registered package; if not, then ASN will be blessed into Net::LDAP::Intermediate.
This constructor is used internally by Net::LDAP and assumes that the HASH passed contains a valid intermediate response.
β οΈ It should be used with caution. Like, for real. This is not a casual little βlet me just poke the internalsβ situation.
π METHODS π
In addition to the methods listed below, each of the named parameters to new is also available as a method. responseName will return the OID of the intermediate response object. responseValue is your set/get bestie: it returns the current value for each attribute if called without arguments, but it may also be called with arguments to set new values. Slay. β¨
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 constructors. What it does will depend on the sub-class. It must always return the object. No exceptions, bestie. π
register ( OID )
register is provided for sub-class implementors. It should be called as a class method on a sub-class of Net::LDAP::Intermediate with the OID that the class will handle. Net::LDAP::Intermediate will remember this class and OID pair and use it in the following situations:
newis called as a class method on theNet::LDAP::Intermediatepackage and OID is passed as theresponseName. The returned object will be blessed into the package that registered the OID.newis called as a class method on a registered package and theresponseNameis not specified. TheresponseNamewill be set to the OID registered by that package.from_asnis 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 intermediate response is used.
The base class implementation of this method will call the responseValue method without arguments to allow a sub-class to encode its 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.
π SEE ALSO π
Net::LDAPNet::LDAP::ExtensionNet::LDAP::SearchNet::LDAP::Intermediate::SyncInfo
π AUTHOR π
Mathieu Parent <math.parent@gmail.com>
Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap@perl.org>.
π COPYRIGHT π
Copyright (c) 2008 Mathieu Parent. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
That's the whole manual page, bestie β no cap. This iconic little page is from perl v5.42.0, dated 2024-01-02, and it's the Net::LDAP::Intermediate(3) manual. Periodt. π
β¨π¦
π¦ 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