Net::LDAP::Class::Metadata - LDAP class metadata
package MyLDAPClass; use strict; use base qw( Net::LDAP::Class ); __PACKAGE__->metadata->setup( base_dn => 'dc=mycompany,dc=local', attributes => [qw( name phone email )], unique_attributes => [qw( email )], ); 1;
Instances of this class hold all the attribute information for a Net::LDAP::Class-derived object.
Returns a new instance. The class argument is required.
class
Returns 'Net::LDAP::Class::Loader' by default.
Initialize the Metadata object.
args must be key/value pairs. The keys should be the names of methods, and the values will be set on those method names in the order given.
setup() will call the Net::LDAP::Class::MethodMaker make_methods() method to create accessor methods for all the attributes() on the class indicated in new().
Returns a clone of the Metadata object. Uses Clone::clone().
Returns a Metadata object for class_name. Used primarily by the metadata() method in Net::LDAP::Class.
Get/set the array ref of attributes for the class.
Get/set the base DN for the class.
Get/set the current error message.
Get/set the internal Net::LDAP object.
Get/set the object_classes to be used by the Loader. Ignored if you are not using Net::LDAP::Class::Loader.
Get/set the array ref of unique attributes for the class. These are attributes which may be used to uniquely identify a LDAP entry.
Peter Karman, <karman at cpan.org>
<karman at cpan.org>
Please report any bugs or feature requests to bug-net-ldap-class at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-LDAP-Class. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-net-ldap-class at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Net::LDAP::Class
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Net-LDAP-Class
CPAN Ratings
http://cpanratings.perl.org/d/Net-LDAP-Class
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-LDAP-Class
Search CPAN
http://search.cpan.org/dist/Net-LDAP-Class
The Minnesota Supercomputing Institute http://www.msi.umn.edu/ sponsored the development of this software.
http://www.msi.umn.edu/
The idea and much of the code for this class was stolen directly from John Siracusa's Rose::DB::Object::Metadata module.
Copyright 2008 by the Regents of the University of Minnesota. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Net::LDAP::Class, Rose::DB::Object
To install Net::LDAP::Class, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::LDAP::Class
CPAN shell
perl -MCPAN -e shell install Net::LDAP::Class
For more information on module installation, please visit the detailed CPAN module installation guide.