From: Eric P. <li...@gl...> - 2001-11-29 21:03:43
|
> I look at the documentation for Net::LDAP::new and see that there > is only room for one "HOST" argument. Does this mean that there > is no way to list several hosts to try in a failover arrangement? > Or is there, perhaps, a way to pass Net::LDAP an already opened > IO::Socket? Well, I don't know about Net::LDAP::new handling failover, but I do it myself by using a fairly short timeout: unless ( $ldaps = Net::LDAPS->new($ldapserverone,port=>636,timeout=>5) ) { $ldaps = Net::LDAPS->new($ldapservertwo,port=>636,timeout=>20) || return "Can't connect to $ldapserverone or $ldapservertwo via LDAPS: $@"; } This works well for me..... Eric Parusel |