ldap.conf caching in openldap
It is found that if I have more than one test cases using openldap, and `setenv("LDAPCONF", LDAP_CONFIG_FILE, 1)` in the middle, then the ssl/tls test case will fail miserably.

However, if I put the same `setenv()` to the beginning of the test suite, then all tests passed without any problem.

It seems to be a caching problem of openldap, which tries to load up the file ldap.conf in the first run of its client library. Later `setenv(LDAPCONF, ...)` is just skipped.

Is there a way in openldap to let it reset the ldap conf cache and reload it on seeing another `setenv(LDAPCONF, ...)`?

Any suggestion is welcomed.

Thanks!
ldap.conf caching in openldap
===

It is found that if I have more than one test cases using openldap, and `setenv("LDAPCONF", LDAP_CONFIG_FILE, 1)` in the middle, then the ssl/tls test case will fail miserably.

However, if I put the same `setenv()` to the beginning of the test suite, then all tests passed without any problem.

It seems to be a caching problem of openldap, which tries to load up the file ldap.conf in the first run of its client library. Later `setenv(LDAPCONF, ...)` is just skipped.

Is there a way in openldap to let it reset the ldap conf cache and reload it on seeing another `setenv(LDAPCONF, ...)`?

Any suggestion is welcomed.

Thanks!