Lasa Martxel wrote: > Hello, > > I'm using the openldap c client library (2.4.45). > > I would like to somehow have two client instances (not necessarily > simultaneously) within the same application, but I'm having issues with the > second instance I > create. > > I have not found a way to clear the global options so the new ones (different > ca cerficiate, different client certificate) can be used with the second > instance. > With the second ldap_initialize, global options are already initialized. Same > with the TLS context, it's initialized too.
So just use ldap_set_option on the second LDAP* handle and change the options. -- -- Howard Chu CTO, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/
