Quanah Gibson-Mount wrote: > > > --On Wednesday, October 9, 2019 3:23 PM +0000 [email protected] > 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(). > > <https://www.openldap.org/software/man.cgi?query=ldap_start_tls_s&apropos=0&sektion=0&manpath=OpenLDAP+2.4-Release&format=html> > >> 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> > > -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/
