[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Proper way to de initialize library
- To: openldap-technical@openldap.org
- Subject: Proper way to de initialize library
- From: Tobias Ljunggren <tljunggren@gmail.com>
- Date: Sat, 18 Oct 2014 20:08:48 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:disposition-notification-to:date:from:user-agent :mime-version:to:subject:content-type:content-transfer-encoding; bh=1+jfMJTcG5/KFJmFYVQIt3rdU6jpcChT5kXN99aeYAo=; b=E7J7VKzJZq4fPkNqFr9e81x5slTuJMi2YIxMn71UUVcKoRQS0J7SxSEjPojwf32kRK Mgi1g/GZ4whClwF5WaFk+4nvuqb/zeTjpBqJp/nqv3uWwa5k7zj0yi23E9EmoD6aOlhb vkhY1YIm+UAYP7ZNK9kwVc20AQMSkBX7VOIp58khjH8muSfYn7W4RqBRnvnrpOQ5lHu4 GQVYb7lhI/AmjXZVvFa8sTXMhVEab54iI9EazUcG5oNGFzAZ6yOZ/Nr3JInBXNVrkEAs R57RvOLJB4DdKGi8Q453yioMpe15E3g1tgQkJYFyXDwMtZyC/IddC5OrIjPkM+exAMMQ VWoQ==
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0
Hello,
What is the proper way to de-initialize openLDAP library?
Let's assume I have
ldap_initialize (ldaps://....)
a couple of general ldap_set_option
some ldap_set_option for TLS
ldap_sasl_bind_s
Is ldap_unbind_s all that's required?
My problem is that if I do it this way when using openLDAP from a shared object and the process unloads the shared object and
then loads it again (restarts my library) TLS won't work anymore. Probably there is one or more global variables in openLDAP
that needs to be reset before unload to make sure the initialization works.
I looked at the ldapsearch example provided, in common.c, and noticed a call to ldap_pvt_tls_destroy. I tried that but it
doesn't make any difference.
I've compiled openLDAP to use Mozilla NSS.
Best regards,
Tobias