On Tue, September 20, 2005 11:56 am, Christopher A Bongaarts wrote:
> In the immortal words of Chris Ridd and Graham Barr, respectively:
>
>> > Actually you can just call $ldap->socket() to get the IO::Socket
>> object
>> > being used. This is a documented method, so is safe.
>
> I don't see it in the documentation for Net::LDAP (but then I'm a
> couple revs out of date, so it might be there now).  At any rate, do
> what the other Chris said. :)
>
>> Right. But what Sean really wants is prtobably just what is stored in
>> $ldap->{net_ldap_host}. We should add a ->host method to return that.
>
> If I'm reading the code correctly, net_ldap_host will simply return
> the string that you passed in for the host.  The question was how
> determine, if you pass in more than one host in that string, *which*
> one was actually used for the connection.

It will contain the host that was connected to. Try it, you might like it :-)

Graham.


Reply via email to