Skip to content
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

curl ntlm auth stopped working #741

Closed
educhana opened this issue Nov 27, 2015 · 6 comments
Closed

curl ntlm auth stopped working #741

educhana opened this issue Nov 27, 2015 · 6 comments
Labels
👆 Git Upstream issue in Git for Windows.

Comments

@educhana
Copy link

The new msysgit curl binary provided in 1.2.9 misses SSPI feature. This causes NTLM authentication support to not work.

old curl -V

curl 7.30.0 (i386-pc-win32) libcurl/7.30.0 OpenSSL/0.9.8z zlib/1.2.7
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IPv6 Largefile NTLM SPNEGO SSL SSPI libz

new curl -V

λ curl -V
curl 7.44.0 (i686-pc-msys) libcurl/7.44.0 OpenSSL/1.0.2d zlib/1.2.8 libidn/1.32 libssh2/1.6.0
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: Debug IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets Metalink
@MartiUK MartiUK added the 👆 Git Upstream issue in Git for Windows. label Nov 27, 2015
@MartiUK
Copy link
Member

MartiUK commented Nov 27, 2015

Have you tried raising this issue on their project page? https://github.com/git-for-windows/git

@educhana
Copy link
Author

Thanks. I was in doubt about which project owns the issue. I've dig a bit further and find the following:

There are two curl binaries in the distrib:

./vendor/git-for-windows/mingw32/bin/curl.exe
./vendor/git-for-windows/usr/bin/curl.exe

Its the one in /usr/bin that it's broken. If you use the other (mingw32 - that is compiled with SSPI feature) it works ok. Sadly it's out of the path by default.

In fact git is working with ntlm auth OK. Seems that it's using the mingw exe/dll

@MartiUK
Copy link
Member

MartiUK commented Nov 27, 2015

Try one of the builds here: https://ci.appveyor.com/project/MartiUK/cmder/build/1.0.117-development/artifacts This is built from the latest sources in the dev branch, and should include curl 7.45 from git-for-windows.

@educhana
Copy link
Author

Has the same problem.

This is the command issued:

curl -v --proxy-ntlm --proxy proxyserver:port -U : -L http://repo.continuum.io/pkgs/free/win-64/

BUT this works:

curl -v --proxy-ntlm --proxy proxyserver:port -U DOMAIN/user:password -L http://repo.continuum.io/pkgs/free/win-64/

So, what you lose without SSPI is the ability to use you user credentials automatically from your login.

@MartiUK
Copy link
Member

MartiUK commented Nov 27, 2015

Yeah that's annoying, I suggest you open an issue on the git-for-windows page, curl needs to be compiled with SSPI.

https://github.com/git-for-windows/MSYS2-packages/blob/master/curl/PKGBUILD This file doesn't have the required switch enabled for it to be built with SSPI support.

@educhana
Copy link
Author

educhana commented Dec 2, 2015

OK. Thanks!

I've opened an issue to the git-for-windows team

@educhana educhana closed this as completed Dec 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👆 Git Upstream issue in Git for Windows.
Projects
None yet
Development

No branches or pull requests

2 participants