Net::LDAP::Batch::Action::Add - add entry to LDAP server
use Net::LDAP::Batch::Action::Add; my $action = Net::LDAP::Batch::Action->new( { ldap => $net_ldap_object, dn => 'name=foo,dc=company,dc=com', attr => [ name => 'foo', mail => 'foo@company.com' ], }); $action->execute or $action->rollback;
This is a base class for batch actions.
NOTE: Net::LDAP::Batch::Action objects will croak() if anything unusual happens. This approach assumes that Catastrophic Failure is a Good Thing. So use eval() if you need to catch exceptions.
Overrides base method to confirm that dn() and attr() are set.
Creates a Net::LDAP::Entry object, adds the dn() and attr() values to it, then adds to the LDAP server.
Deletes the entry added in execute().
Peter Karman, <karman at cpan.org>
<karman at cpan.org>
Please report any bugs or feature requests to bug-net-ldap-batch at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-LDAP-Batch. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-net-ldap-batch at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Net::LDAP::Batch
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Net-LDAP-Batch
CPAN Ratings
http://cpanratings.perl.org/d/Net-LDAP-Batch
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-LDAP-Batch
Search CPAN
http://search.cpan.org/dist/Net-LDAP-Batch
The Minnesota Supercomputing Institute http://www.msi.umn.edu/ sponsored the development of this software.
http://www.msi.umn.edu/
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
To install Net::LDAP::Batch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::LDAP::Batch
CPAN shell
perl -MCPAN -e shell install Net::LDAP::Batch
For more information on module installation, please visit the detailed CPAN module installation guide.