The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

ResourcePool::Factory::Net::LDAPapi - A Net::LDAPapi Factory for ResourcePool

SYNOPSIS

 use ResourcePool::Factory::Net::LDAPapi;
 
 my $factory = ResourcePool::Factory::Net::LDAPapi->new([NewOptions]);

DESCRIPTION

This class is a factory class for Net::LDAPapi resources to be used with the ResourcePool.

Please have a look at the ResourcePool::Factory documentation to learn about the purpose of such a factory.

API

ResourcePool::Factory::Net::LDAPapi->new($hostname)
ResourcePool::Factory::Net::LDAPapi->new($hostname, $port)
ResourcePool::Factory::Net::LDAPapi->new(-host => $hostname, -port => $port)
ResourcePool::Factory::Net::LDAPapi->new(-url => $url)

All parameters passed to new() are passed to Net::LDAPapi->new(). See Net::LDAPapi for full list.

$factory->bind("dn", "password")
$factory->bind(-dn => "dn", -password => "password")

All parameters passed to bind() are passed to Net::LDAPapi->bind_s(). See Net::LDAPapi for full list.

Please note that this module will always do a bind to the LDAP server, if you do not specify any bind arguments the bind will be anonymously. The bind() call is used to check the vitality of the LDAP connection, if it fails ResourcePool will throw it away..

EXAMPLES

 use ResourcePool;
 use ResourcePool::Factory::Net::LDAPapi;
 
 my $factory = ResourcePool::Factory::Net::LDAPapi->new(-host => "ldaphost");
 $factory->bind(-dn => 'cn=admin,dc=example,dc=com', -password => 'secret');

SEE ALSO

Net::LDAPapi, ResourcePool, ResourcePool::Factory, ResourcePool::Resource::Net::LDAPapi

AUTHOR

ResourcePool::Factory::Net::LDAPapi

Copyright (C) 2015 by Phillip O'Donnell <podonnell@cpan.org>

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Portions based on ResourcePool::Factory::Net::LDAP

Copyright (C) 2001-2003 by Markus Winand <mws@fatalmind.com>

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.