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

NAME

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

SYNOPSIS

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

DESCRIPTION

This class is used by the ResourcePool internally to create Net::LDAP connections. Its called by the corresponding ResourcePool::Factory::Net::LDAP object which passes the parameters needed to establish the Net::LDAP 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:

$resource->precheck

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

Returns: 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::LDAP, ResourcePool, ResourcePool::Resource, ResourcePool::Factory::Net::LDAP

AUTHOR

    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.