--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
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
Quanah Gibson-Mount wrote:
--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).
Maybe there's a misunderstanding:
As I read it Daniel asks for setting the client's *out-going* IP address, something like telnet -b <local-address>. Probably he's on a multi-homed host or has a more complicated IP configuration and has to use a specific out-going address for getting his packets accepted by the server.
Ciao, Michael.
Indeed, similarly to "telnet -b <client-local-address>" or Microsoft LDAP client API function ldap_set_option(LDAP_OPT_SOCKET_BIND_ADDRESSES...) and my system is a multi-homed host.
Daniel
-----Original Message----- From: Michael Ströder [mailto:michael@stroeder.com] Sent: Thursday, May 11, 2017 4:26 PM To: Quanah Gibson-Mount quanah@symas.com; Daniel Le daniel.le@exfo.com; 'openldap-technical@openldap.org' openldap-technical@openldap.org Subject: Re: Client binding to a specific local address
Quanah Gibson-Mount wrote:
--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).
Maybe there's a misunderstanding:
As I read it Daniel asks for setting the client's *out-going* IP address, something like telnet -b <local-address>. Probably he's on a multi-homed host or has a more complicated IP configuration and has to use a specific out-going address for getting his packets accepted by the server.
Ciao, Michael.
openldap-technical@openldap.org