Text of github.com › curl › curl › issues › 6284 as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

[cmake] Can't use feature ldaps on Windows · Issue #6284 · curl/curl · GitHub

Skip to content You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert [cmake] Can't use feature ldaps on Windows #6284 New issue Copy link New issue Copy link Closed Closed [cmake] Can't use feature ldaps on Windows #6284 Copy link Labels KNOWN_BUGS material LDAP Windows Windows-specific Windows-specific cmake Description JackBoosY opened on Dec 7, 2020 Issue body actions Hi guys: Recently, we received an issue about curl ( microsoft/vcpkg#14030 ), that reported that the feature ldaps could not be enabled on Windows.

Since curl in vcpkg uses cmake to build, I checked the cmake configuration in curl and found something strange: curl/CMakeLists.txt Lines 511 to 520 in abd846c if ( NOT CURL_DISABLE_LDAP) if ( WIN32 ) option ( USE_WIN32_LDAP "Use Windows LDAP implementation" ON ) if (USE_WIN32_LDAP) check_library_exists_concat ( "wldap32" cldap_open HAVE_WLDAP32 ) if ( NOT HAVE_WLDAP32) set (USE_WIN32_LDAP OFF ) endif () endif () endif () Here we can use the system's ldaps on windows, but openldap is not disabled here, and: curl/CMakeLists.txt Lines 1398 to 1400 in abd846c _add_if ( "LDAPS" NOT CURL_DISABLE_LDAPS AND (( USE_OPENLDAP AND SSL_ENABLED ) OR ( NOT USE_OPENLDAP AND HAVE_LDAP_SSL ))) There is no judgment variable USE_WIN32_LDAP when judging whether to enable ldaps.

I think that's caused this issue. But even if I use USE_WIN32_LDAP and explicitly enable ldaps in the configuration log, using curl -V does not explicitly enable ldaps. Configure log: -- Enabled protocols: DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP LDAPS MQTT POP3 POP3S RTSP SMB SMBS SMTP SMTPS TELNET TFTP Result: curl 7.73.0-DEV (Windows) libcurl/7.73.0-DEV Schannel zlib/1.2.11 Release-Date: [unreleased] Protocols: dict file ftp ftps gopher http https imap imaps ldap mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI TrackMemory libz I expected the following ldaps should be enabled on Windows. curl/libcurl version 7.73.0 [curl -V output] curl 7.73.0-DEV (Windows) libcurl/7.73.0-DEV Schannel zlib/1.2.11 Release-Date: [unreleased] Protocols: dict file ftp ftps gopher http https imap imaps ldap mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI TrackMemory libz operating system Windows 10, Visual Studio 2017, cmake 3.18.2 Activity bagder added cmake LDAP Windows Windows-specific Windows-specific on Dec 8, 2020 bagder added KNOWN_BUGS material on Dec 18, 2020 bagder commented on Feb 13, 2021 bagder on Feb 13, 2021 Member More actions It seems nobody is going to work on this.

I'll add it to KNOWN_BUGS . bagder closed this as completed in 835c263 on Feb 13, 2021 vszakats added 2 commits that reference this issue on Mar 4, 2023 cmake: fix enabling LDAPS on Windows This issue will close once commit fd3d81d is merged into the 'master' branch. fd3d81d curl-cmake.sh: delete manual LDAPS option after upstream fix [ci skip] This issue will close once commit 86b0f5a is merged into the 'main' branch.

86b0f5a vszakats commented on Mar 4, 2023 vszakats on Mar 4, 2023 Member More actions Proposing a fix for this in PR #10674 . vszakats added a commit that references this issue on Mar 5, 2023 cmake: fix enabling LDAPS on Windows This issue will close once commit 8cfc936 is merged into the 'master' branch. 8cfc936 bch added a commit that references this issue on Jul 19, 2023 cmake: fix enabling LDAPS on Windows This issue will close once commit 959411f is merged into the 'master' branch.

959411f Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Metadata Metadata Assignees No one assigned Labels KNOWN_BUGS material LDAP Windows Windows-specific Windows-specific cmake Type No type Projects No projects Milestone No milestone Relationships None yet Development No branches or pull requests Issue actions You can’t perform that action at this time.