https://bugs.winehq.org/show_bug.cgi?id=54727
--- Comment #2 from Alex Henrie alexhenrie24@gmail.com --- And after stubbing out LDAP_OPT_REFERRAL_HOP_LIMIT, I get:
0024:fixme:wldap32:ldap_set_optionW Unsupported option: 0x81
0x81 is LDAP_OPT_SERVER_CERTIFICATE. After stubbing that out too, LEX connects successfully! However, for security reasons we probably don't want stub code that unconditionally skips the certificate validation step. I'm hoping that the "Ignore server certificate errors" checkbox means that we can pass a null certificate to LEX's certificate verification callback and it will return TRUE anyway.