Hi @Shane S
Yes the callback function is called in the same thread as the one that executed the ldap_connect. The callback function is passed the following parameters PLDAP, PCCERT_CONTEXT. You can then perform the required validation on the certificate, and as the return value from the callback function will be used to confirm the connection, you have full control over the verification process. I've used this functionality to delivery additional certificate validation checks for LDAPS connection explained in this article.
Gary.