Set OpenLDAP Debug Level The Correct Way

1 · Yang Yang · Dec. 29, 2018, midnight
Recently, I run into an issue with OpenLDAP client library’s ldap_set_option() function, when I was trying to turn on the library’s internal debug logging. Due to its poor documentation, I have to dig deeply into its source code to find out the right way of setting the debug level of OpenLDAP library. In this post, I’d like to share what I have found, so that other people, who have similar issues, may save some of their time. Synopsis #include <ldap.h> int ldap_get_option(LDAP *ld, int option, ...