Catmandu::Importer::LDAP - Package that imports LDAP directories
use Catmandu::Importer::LDAP; my $importer = Catmandu::Importer::LDAP->new( base => "...", password => "...", search_base => "...", search_filter => "(&(...)(...))", attributes => { name => 1, # or name => {as => "Name"}, # or name => {as => "Name", array => 1}, }, ); my $n = $importer->each(sub { my $hashref = $_[0]; # ... });
To install Catmandu::LDAP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::LDAP
CPAN shell
perl -MCPAN -e shell install Catmandu::LDAP
For more information on module installation, please visit the detailed CPAN module installation guide.