in reply to Re^2: Keeping LDAP connectsion between program runs
in thread Keeping LDAP connections between program runs
I believe you want DBD::LDAP (in conjunction with Apache::DBI)
use DBI; $dbh = DBI->connect("DBI:LDAP:ldapdb",'user','password') or die "Cannot connect as user: " . $DBI::errstr; $dbh = DBI->connect("DBI:LDAP:ldapdb") #ANONYMOUS or die "Cannot connect as guest (readonly): " . $DBI::errstr;
Updated: You might also want to look at ResourcePool, which specifically calls out Net::LDAP connection caching as a target use.
|
|---|