Hi,

On Sunday, 10. February 2008, Markus Moeller wrote:
> I am new to LDAP.pm and like to query several ldap servers for
> redundancy/failover.  The documentation says that the host can be an array:
>
> "HOST may also be a reference to an array of hosts, host-port pairs or URIs
> to try. Each will be tried in order until a connection is made. Only when
> all have failed will the result of undef be returned."
>
> [...]
>
>  $ldap = Net::LDAPS->new( '192.168.1.18 192.168.1.12', timeout => 2,
> version => 3) or die "$@";

'192.168.1.18 192.168.1.12' is not an array reference but a string.

Please try it with 
        [ qw(192.168.1.18 192.168.1.12) ]
or the equivalent
        [ '192.168.1.18', '192.168.1.12' ]
as the 1st arg to Net::LDAP->new()

Hope it helps
Peter
-- 
Peter Marschall
[EMAIL PROTECTED]

Reply via email to