mirror of
https://github.com/curl/curl.git
synced 2026-08-25 13:53:37 +03:00
NTLM single-sign on supported
With the use of the 'ntlm_auth' tool from the Samba project
This commit is contained in:
parent
650a504b2f
commit
a6d4807d02
10 changed files with 404 additions and 8 deletions
13
src/main.c
13
src/main.c
|
|
@ -1869,6 +1869,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
{"*k", "digest", FALSE},
|
||||
{"*l", "negotiate", FALSE},
|
||||
{"*m", "ntlm", FALSE},
|
||||
{"*M", "ntlm-sso", FALSE},
|
||||
{"*n", "basic", FALSE},
|
||||
{"*o", "anyauth", FALSE},
|
||||
#ifdef USE_WATT32
|
||||
|
|
@ -2223,6 +2224,17 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
config->authtype &= ~CURLAUTH_NTLM;
|
||||
break;
|
||||
|
||||
case 'M': /* --ntlm-sso */
|
||||
if(toggle) {
|
||||
if(curlinfo->features & CURL_VERSION_NTLM_SSO)
|
||||
config->authtype |= CURLAUTH_NTLM_SSO;
|
||||
else
|
||||
return PARAM_LIBCURL_DOESNT_SUPPORT;
|
||||
}
|
||||
else
|
||||
config->authtype &= ~CURLAUTH_NTLM_SSO;
|
||||
break;
|
||||
|
||||
case 'n': /* --basic for completeness */
|
||||
if(toggle)
|
||||
config->authtype |= CURLAUTH_BASIC;
|
||||
|
|
@ -3203,6 +3215,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
{"IPv6", CURL_VERSION_IPV6},
|
||||
{"Largefile", CURL_VERSION_LARGEFILE},
|
||||
{"NTLM", CURL_VERSION_NTLM},
|
||||
{"NTLM_SSO", CURL_VERSION_NTLM_SSO},
|
||||
{"SPNEGO", CURL_VERSION_SPNEGO},
|
||||
{"SSL", CURL_VERSION_SSL},
|
||||
{"SSPI", CURL_VERSION_SSPI},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue