[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: which HOST is REALLY connected in ldaphost list ?



At 09:34 AM 2002-06-11, samuel.osouf wrote:
>The parameter ldaphost int ldap_init(),
>ldap_bind()... may be a list of hosts. If the first
>one can't be reached, then the functions
>try the second one, and so on.
>
>My question is :
>
><<During an LDAP session, is there a way to know 
>which
>server in the list is ACTUALLY connected ?>>

Get the socket descriptor (LDAP_OPT_DESC) then
call getpeername() on it.