https://bugs.openldap.org/show_bug.cgi?id=10099
--- Comment #1 from AllenM amcwongahey@rbbn.com --- Found that in tls2.c & tls_o.c the following compile flag was removed:
LDAP_USE_NON_BLOCKING_TLS
This was NOT compiled in on 2.4.59 but with the compile flag being removed it started getting compiled. This resulted in the lockup I described.
Now this may well be something in the way our application is interacting with openLDAP. Perhaps we need to do something different to support asynchronous operations.
I did add this to the code when binding with the domain controller:
nReturnCode = ldap_set_option(m_pLD, LDAP_OPT_CONNECT_ASYNC, LDAP_OPT_OFF);
This did not fix the problem but when I added the compile flags back to match that present on 2.4.59 the problem was resolved.
I don't really have the time at the moment to dig further unfortunately.