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. %% Christopher A. Bongaarts %% [EMAIL PROTECTED] %% %% Internet Services %% http://umn.edu/~cab %% %% University of Minnesota %% +1 (612) 625-1809 %%