From a6d4807d028eb82f4a99587b0a8851727ca88566 Mon Sep 17 00:00:00 2001 From: Mandy Wu Date: Mon, 18 Jul 2011 23:36:36 +0200 Subject: NTLM single-sign on supported With the use of the 'ntlm_auth' tool from the Samba project --- src/main.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/main.c b/src/main.c index 154694461..a68963df0 100644 --- a/src/main.c +++ b/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}, -- cgit v1.2.3