Full_Name: Daniel Le Version: 2.4.44 OS: Linux URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (107.0.5.66) Enhancement request to modify the ldap_set_option function to add support for a multihomed client to bind to a specific local network address, similarly to "telnet -b <client-local-address>" option or Microsoft LDAP client API function ldap_set_option(LDAP_OPT_SOCKET_BIND_ADDRESSES). Thank you.
Daniel.Le@Exfo.com wrote: > Full_Name: Daniel Le > Version: 2.4.44 > OS: Linux > URL: ftp://ftp.openldap.org/incoming/ > Submission from: (NULL) (107.0.5.66) > > > Enhancement request to modify the ldap_set_option function to add support for a > multihomed client to bind to a specific local network address, similarly to > "telnet -b <client-local-address>" option or Microsoft LDAP client API function > ldap_set_option(LDAP_OPT_SOCKET_BIND_ADDRESSES). It might be helpful if you would link to the documentation for this option, so someone can write something compatible. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/
For reference: https://msdn.microsoft.com/en-us/library/aa367019(v=vs.85).aspx LDAP_OPT_SOCKET_BIND_ADDRESSES 0x44 Sets or retrieves a pointer to a TCHAR string containing a list of space-separated addresses to be used by socket bind. For a multihomed machine, use this option to set a particular network interface address to be used for socket bind. Socket bind will be performed before socket connect for the server address. See socket bind for more details. You should provide both IPv4 and IPv6 local addresses, if available, because both IPv4 and IPv6 server addresses can be used for socket connect. Socket bind will fail if there is an address family mismatch. On the Domain Controller, for the default Server (HostName=NULL), loopback addresses will be used for socket connect. Set loopback addresses (for both IPv4 and IPv6) for this option to work. This option can only be set before a connection is established. That is, just after ldap_init. ------------------------------- I am not sure what "a list of space-separated addresses" exactly means. Perhaps one IPv4 IP address and one IPv6 address if both are available. My use case is either a local IPv4 or IPv6 address. Daniel
daniel.le@exfo.com wrote: > I am not sure what "a list of space-separated addresses" exactly means. Per= > haps one IPv4 IP address and one IPv6 address if both are available. My use= > case is either a local IPv4 or IPv6 address. Hmm, a dual-stack machine is the most likely use-case. This also raises the question of the IP address list os ordered and the caller can therefore give a preference for IPv4 or IPv6 (e.g. like postfix is doing it for out-going SMTP conns). Ciao, Michael.
--On Tuesday, May 16, 2017 1:53 AM +0000 daniel.le@exfo.com wrote: As noted in my reply on -technical, you need to subscribe to the openldap-devel list, and have this discussion there, before starting work. Thanks! --Quanah -- Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: <http://www.symas.com>
changed notes
has patch;openldap-scratch IPR missing See also ITS#8847, ITS#8930
*** Issue 8930 has been marked as a duplicate of this issue. ***
Missing IPR, 8847 has IPR and more recent work. *** This issue has been marked as a duplicate of issue 8847 ***