Is there a way to get Net::LDAP to use the system configuration file to get the hostnames to connect to? Passing "", undef, or nothing to Net::LDAP->new doesn't seem to do anything other than fail. I could always open the configuration files, but that is slightly painful, given that the first of the vagaries is that it could be /etc/ldap.conf (fedora), /usr/local/etc/ldap.conf (fBSD), or /etc/ldap/ldap.conf (debian).
I use a combination of DNS SRV and TXT records for LDAP service location. Works like a charm, you just need to include Net::DNS as well... -- mike