I just used the module Data::Dumper to look at the
structure and you should be able to get it by doing:

#-----------------------------------------------------------
use Net::LDAP;
my $ldap = new Net::LDAP ...
....
print "I am connected to: " . $ldap->{net_ldap_host} .
"\n" ;
#-----------------------------------------------------------

Let me know if that helps.

DanInCT.

--- Brian Thomas <[EMAIL PROTECTED]> wrote:

> As usual, sorry if this has been asked before. I've
> been scouring the
> module documentation and thus far been unable to
> find an answer to
> this question. Googling also yields no results.
> 
> If I pass an arrayref of hosts to the the new()
> method (or I suppose
> even if I just passed one), is there any way later
> on, via another
> method or otherwise, to know what server I'm
> connected to? This seems
> like a pretty important thing to be able to find
> out, even better if
> there was like a status() method that could return
> host, port, TLS
> status, etc. for the object's associated server.
> 
> Any ideas?
> 

Reply via email to