]> granicus.if.org Git - curl/commit
ntlm_sspi: fix authentication using Credential Manager
authortoughengineer <paul.skeptic@yandex.ru>
Sat, 8 Jul 2017 00:10:08 +0000 (02:10 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Mon, 16 Apr 2018 18:43:21 +0000 (20:43 +0200)
commitbc4b8c9717c8972acf1f8d6383b127b5c8ef3e72
tree2fd661d5a829e90e76c47727c235ccf9a4d76c0e
parent2d4c2152c9eb3dbdf943de46ed8fc11285f1b90b
ntlm_sspi: fix authentication using Credential Manager

If you pass empty user/pass asking curl to use Windows Credential
Storage (as stated in the docs) and it has valid credentials for the
domain, e.g.
curl -v -u : --ntlm example.com
currently authentication fails.
This change fixes it by providing proper SPN string to the SSPI API
calls.

Fixes https://github.com/curl/curl/issues/1622
Closes https://github.com/curl/curl/pull/1660
lib/curl_sasl.c
lib/http_ntlm.c
lib/urldata.h
lib/vauth/ntlm.c
lib/vauth/ntlm_sspi.c
lib/vauth/vauth.h