I'm working on an embedded LDAP application software that makes use of the OpenLDAP client ldap and lber libraries, not the LDAP client command-line utilities. For that reason, I didn't look into the client utilities and narrowly thought of slapd -h (where -H option doesn't exist).
I see the client utilities ldapsearch, ldapadd, ldapmodify... have the [-H ldapuri] option, but the library functions ldap_search, ldap_search_ext, ldap_add, ldap_add_ext, ldap_modify, ldap_modify_ext, etc. don't have an equivalent input argument. Is it correct that no client library function supports specification of a local IP address?
Daniel
-----Original Message----- From: Quanah Gibson-Mount [mailto:quanah@symas.com] Sent: Thursday, May 11, 2017 2:12 PM To: Daniel Le daniel.le@exfo.com; 'openldap-technical@openldap.org' openldap-technical@openldap.org Subject: RE: Client binding to a specific local address
--On Thursday, May 11, 2017 6:38 PM +0000 Daniel Le daniel.le@exfo.com wrote:
Thanks for the answer, however the -h <URI/URL> appears to be a server (slapd) option. I'm looking for the LDAP client side which uses OpenLDAP libldap and liblber libraries.
You may wish to more carefully read my response (Hint: -h and -H are not the same thing). You may also wish to refer to the man pages for client utilities such as ldapsearch, (which use the LDAP client side API).
--Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com