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

Re: Client binding to a specific local address



--On Thursday, May 11, 2017 5:24 PM -0500 Quanah Gibson-Mount <quanah@symas.com> wrote:

Ah I see. No such option at this time that I am aware of.

Yeah, looking at os-ip.c in libldap, we have no option to use bind(2), and purely use connect(2). I suppose this could be seen as an enhancement request.

       do{
               osip_debug(ld, "attempting to connect: \n", 0, 0, 0);
               if ( connect(s, sin, addrlen) != AC_SOCKET_ERROR ) {

--Quanah

--

Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<http://www.symas.com>