]> git.ipfire.org Git - thirdparty/curl.git/commit
ldap: support insecure mode for Windows native LDAP master
authorJay Satiro <raysatiro@yahoo.com>
Wed, 24 Jun 2026 05:59:05 +0000 (01:59 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 24 Jun 2026 18:36:16 +0000 (14:36 -0400)
commit4ce309d968cfe02c402d07b2911241c38a8adf6b
tree14fbf7f11aecac3e5c5feedc93abcc3cab65d04f
parenta1af38be0902a87d52f57dba5ebf3154adcb615b
ldap: support insecure mode for Windows native LDAP

- Bypass cert verification if verifypeer is disabled.

Prior to this change libcurl lacked the ability to bypass certificate
verification for Windows native LDAP (USE_WIN32_LDAP). A comment said
"Win32 LDAP SDK does not support insecure mode without CA!" but I found
that we can bypass the check by setting a verify callback to override
Windows' internal verify check.

Closes https://github.com/curl/curl/pull/22152
lib/ldap.c