In the immortal words of Dolan, Sean (N-ISYS Technologies Inc.):
> I know that Net::LDAP can support multiple hosts.
>
> [from documentation]
> "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
>
> When a bind is done, how can we tell which server it connected to?
> It'd be nice for logging purposes in our scripts.
>
> Any ideas?
Quick 'n' dirty, but bad OOP practice and may break in future
versions: you can get at the IO::Socket object after new() using
$ldap->{net_ldap_socket}, then use IO::Socket's methods to get
PeerHost/PeerAddr.
%% Christopher A. Bongaarts %% [EMAIL PROTECTED] %%
%% Internet Services %% http://umn.edu/~cab %%
%% University of Minnesota %% +1 (612) 625-1809 %%