-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile curl with LDAPS #14030
Comments
Hi, thank you for your answer. |
Hi @LouisClt Does this issue still exist? |
Sorry for my late reply. As sfhacker pointed out, it may just be my environment which is not well set. |
Because |
Thank you for your answer. |
@LouisClt Seems the description is wrong. option(HTTP_ONLY "disables all protocols except HTTP (This overrides all CURL_DISABLE_* options)" OFF) The wrong description caused you to use the wrong feature. |
Thanks for your answer. Excuse me if I'm wrong but as I understand it :
As we can see non-htp is an inverted feature bound to HTTP_ONLY.
So, according to me, if non-http is specified, the flag -DHTTP_ONLY=OFF will be put, else -DHTTP_ONLY=ON. |
@LouisClt Yes, the description should be |
Although
the tool still does not show that it has this feature:
Will digger in the future. |
There is no judgment |
Nothing different from the last time : I am still able to reproduce the issue, and have no trouble using nmake. |
I managed to compile libcurl with the nmake command (in the winbuild directory of libcurl) with ldaps fully functionnal, and that was all I needed (but I think there are some advantages from using vcpkg (more options than with nmake, easier to compile)). So it is not a blocking point as far as I am concerned (sorry if I misunderstood you question), and I am not really waiting. |
As far as I am concerned, the issue is not resolved. Fixing the problem of the Thanks |
No it isn't correct : the binary built using nmake does have ldaps support. |
@LouisClt I've report this to the upstream(curl/curl#6284), let's wait for the official reply. |
Since this issue was marked as a known bug, I think we should disable this until the official fix it. |
I don't think the current state of open and "category:port-bug" and not "depends:upstream-changes" properly reflects the state: It is not a bug in the port itself, and it does depend on upstream changes (or patching). Anyway, in #18971 I moved WinLDAP support to a separate, non-default feature now, and documented the missing LDAPS support in the description. |
@dg0yt I think we should simply remove this feature until the upstream fix it. |
With #18971, LDAP is removed from the default features. I think this is good enough: opt-in when desired, and see the limitations in the feature's description. PS: If it is entirely removed, there may be new feature requests or pull requests, and we will have to explain again why it isn't there. |
Host Environment:
Windows 10 ver 1909, compiler : VS 2019
I tried to compiled Curl with vcpkg , and was unable to get the protocol LDAPS to be enabled in curl (I tried many options). The configuration seems to enable LDAP but not LDAPS.
Steps to reproduce :
Compile curl with tool (and openssl but this does not seem to matter)(in x64 Native commands tools):
vcpkg install curl[tool,openssl] --triplet x64-windows
Then goes to package packages\curl_x64-windows\tools\curl and do:
curl ldaps://localhost
curl ldap://localhost
Result :
curl: (1) Protocol "ldaps" not supported or disabled in libcurl
curl: (7) Failed to connect to localhost port 389: Connection refused
I expect the first message to be somewhat the same as the second (here LDAPS is not activated).
When I compile LibCurl with nmake (going in the winbuild directory and doing something like :
"nmake /f Makefile.vc mode=dll WITH_SSL=dll SSL_PATH=[YOUR_SSL_PATH] VC=16 MACHINE=x64 GEN_PDB=yes ENABLE_UNICODE=yes") I am able to get the LDAPS support.
At this point I am not sure if this is vcpkg related or just a bad makefile from LibCurl, but as nmake in winbuild works I guess that this may be related to vcpkg.
config-x64-windows-out.log parts that can be relevant :
-- Looking for cldap_open in wldap32;winmm;ws2_32;advapi32;crypt32;OpenSSL::SSL;OpenSSL::Crypto
-- Looking for cldap_open in wldap32;winmm;ws2_32;advapi32;crypt32;OpenSSL::SSL;OpenSSL::Crypto - found
-- Looking for include file winldap.h
-- Looking for include file winldap.h - not found
-- Looking for include file winber.h
-- Looking for include file winber.h - not found
-- Looking for include file ldap_ssl.h
-- Looking for include file ldap_ssl.h - not found
-- Looking for include file ldapssl.h
-- Looking for include file ldapssl.h - not found
[...]
-- Enabled protocols: DICT FILE FTP FTPS GOPHER HTTP HTTPS IMAP IMAPS LDAP POP3 POP3S RTSP SMB SMBS SMTP SMTPS TELNET TFTP
(no LDAPS here, it indicates it does not find winldap but I think it findsit because LDAP is activated at the end)
The text was updated successfully, but these errors were encountered: