Quanah Gibson-Mount wrote:
--On Wednesday, October 9, 2019 3:23 PM +0000 Howard.Gillison@gvltec.edu wrote:
Good morning to you,
I suggest you read the OpenLDAP client code and the libldap code which fully utilizes the API to make connections with or without TLS. I think the *function*> you're looking for is ldap_start_tls_s (at least for startTLS over port 389):
Since he mentions port 636, he should just be using an ldaps://<host> URL with ldap_initialize().
From the library, I would suggest perusing libldap/init.c, libldap/open.c,
libldap/options.c, and libldap/unbind.c
Since this is open source software it is of course trivial to access the code and have working examples before you.
Regards, Quanah
--
Quanah Gibson-Mount Product Architect Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com