Net::LDAP::Schema - Online Linux Manual PageSection : 3
Updated : 2022-01-21
Source : perl v5.34.0
Note : User Contributed Perl Documentation
NAMENet::LDAP::Schema − Load and manipulate an LDAP v3 Schema
SYNOPSIS use Net::LDAP;
use Net::LDAP::Schema;
#
# Read schema from server
#
$ldap = Net::LDAP−>new ( $server );
$ldap−>bind ( );
$schema = $ldap−>schema ( );
#
# Load from LDIF
#
$schema = Net::LDAP::Schema−>new;
$schema−>parse ( "schema.ldif" ) or die $schema−>error;
DESCRIPTIONNet::LDAP::Schema provides a means to load an LDAP schema and query it for information regarding supported objectclasses, attributes and syntaxes.
METHODSWhere a method is stated as taking the 'name or OID' of a schema item (which may be an object class, attribute or syntax) then a case-insensitive name or raw OID (object identifier, in dotted numeric string form, e.g. 2.5.4.0) may be supplied. Each returned item of schema (e.g. an attribute definition) is returned in a HASH. The keys in the returned HASH are lowercase versions of the keys read from the server. Here's a partial list (not all HASHes define all keys) although note that RFC 4512 permits other keys as well: name
desc
obsolete
sup
equality
ordering
substr
syntax
single−value
collective
no−user−modification
usage
abstract
structural
auxiliary
must
may
applies
aux
not
oc
form
all_attributes ( ) all_ditcontentrules ( ) all_ditstructurerules ( ) all_matchingrules ( ) all_matchingruleuses ( ) all_nameforms ( ) all_objectclasses ( ) all_syntaxes ( ) Returns a list of all the requested types in the schema. attribute ( NAME ) ditcontentrule ( NAME ) ditstructurerule ( NAME ) matchingrule ( NAME ) matchingruleuse ( NAME ) nameform ( NAME ) objectclass ( NAME ) syntax ( NAME ) Returns a reference to a hash, or undef if the schema item does not exist. NAME can be a name or an OID. $attr_href = $schema−>attribute( "attrname" );
dump ( ) Dump the raw schema information to standard out. dump ( FILENAME ) Dump the raw schema information to a file. $result = $schema−>dump ( "./schema.dump" );
If no schema data is returned from directory server, the method will return undefined. Otherwise a value of 1 is always returned. error ( ) Returns the last error encountered when parsing the schema. may ( OBJECTCLASS ) Given an argument which is the name or OID of a known object class, returns a list of HASHes describing the attributes which are optional in the class. @may = $schema−>may ( $oc );
# First optional attr has the name '$may[0]−>{name}'
must ( OBJECTCLASS ) Given an argument which is the name or OID of a known object class, returns a list of HASHes describing the attributes which are mandatory in the class. @must = $schema−>must ( $oc );
parse ( MESG ) parse ( ENTRY ) parse ( FILENAME ) Takes a single argument which can be any of, a message object returned from an LDAP search, a Net::LDAP::Entry object or the name of a file containing an LDIF form of the schema. If the argument is a message result from a search, Net::LDAP::Schema will parse the schema from the first entry returned. Returns true on success and undef on error. superclass ( NAME ) Given an argument which is the name or OID of a known objectclass, returns the list of names of the immediate superclasses. attribute_syntax ( NAME ) Given an attribute name, return the actual syntax taking into account attribute supertypes. matchingrule_for_attribute ( NAME, RULE ) Given an attribute name and a matching rule (equality, substr, etc), return the actual rule taking into account attribute supertypes.
SEE ALSONet::LDAP, Net::LDAP::RFC
AUTHORSGraham Barr <gbarr@pobox.com> John Berthels <jjb@nexor.co.uk> Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl−ldap@perl.org>.
COPYRIGHTCopyright (c) 1998−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. 0
Johanes Gumabo
Data Size : 18,029 byte
man-Net::LDAP::Schema.3pmBuild : 2024-12-29, 07:25 :
Visitor Screen : x
Visitor Counter ( page / site ) : 4 / 256,164
Visitor ID : :
Visitor IP : 18.191.84.179 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|252|Net::LDAP::Schema.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|149|Net::LDAP::Schema.3pm|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|252|Net::LDAP::Schema.3pm|43|br══─}─══|'br══─}─══
) (htmlprn|149|Net::LDAP::Schema.3pm|43|'br══─}─══ |'br══─}─══
)