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

Re: client with 2 Network interfaces



At 09:36 AM 2002-06-11, samuel.osouf wrote:
>Hi
>
>I'm writing an ldap client (on FreeBSD 4.3) on a 
>machine with more than one network interface 
>(actually 2).
>
>Functions of the LDAP library do not allow to 
>specify the interface, ie the "Source address".
>So how do I do ?

Generally speaking, you shouldn't worry about the
local address of the socket.  If you need to worry
about the local address, then you'll have to extend
the library.

>Re-write ldap_bind(), etc ?? AAARRGH !

Basically, you should extend ldap_set_option() to allow
setting of an application established socket descriptor
to a session initialized using ldap_create().  A patch
for the this might actually be accepted.  Then you'll
have complete control of the socket initialization.

Kurt