NAME

ResourcePool::Resource::Net::LDAPapi - A ResourcePool wrapper for Net::LDAPapi

SYNOPSIS

use ResourcePool::Resource::Net::LDAPapi;

my $resource = ResourcePool::Resource::Net::LDAPapi->new(
                  $factory,
                  [@NamedBindOptions],
                  [@NamedNewOptions]);

DESCRIPTION

This class is used by the ResourcePool internally to create Net::LDAPapi connections. It's called by the corresponding ResourcePool::Factory::Net::LDAPapi object which passes the parameters needed to establish the Net::LDAPapi connection.

The only thing which has to been known by an application developer about this class is the implementation of the precheck() and postcheck() methods:

API

$resource->precheck

Performs a bind(), either anonymous or with dn and password (depends on the arguments to ResourcePool::Factory::Net::LDAPapi).

Returns true on success and false if the bind failed (regardless of the reason)

$resource->postcheck

Does not implement any postcheck().

Returns always true

SEE ALSO

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

AUTHOR

ResourcePool::Resource::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::Resource::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.