I would like to change they script so that the opened LDAP- connection is being cached. Would using a global variable to hold the LDAP-object and just checking if it's defined suffice:
AFAIK, Apache::DBI does exactly the same with DBI handles. Besides, it is completely transparent to the scripts; for example, if you had a script that wasn't designed to take advantage of cached connections, and it explicitly closes the database handle, the script will continue to work but, as you may guess, the dbh won't be closed at all and, maybe, it will find it there the next time it will connect()
Sorry if my english is not good as my italian :-)
Ciao --M
-- Marco Marongiu Email: [EMAIL PROTECTED] System Administrator Phone: +39 070 460 1684 Tiscali S.p.A.
