diff options
author | Mandy Wu <mandy.wu@intel.com> | 2011-07-18 23:36:36 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2011-07-18 23:36:36 +0200 |
commit | a6d4807d028eb82f4a99587b0a8851727ca88566 (patch) | |
tree | 0f2398259a279bd3d826eee2e78cc76aa1747e46 /lib/url.c | |
parent | 650a504b2f244ad323f1b45c2f36a2f967f7870f (diff) |
NTLM single-sign on supported
With the use of the 'ntlm_auth' tool from the Samba project
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1406,6 +1406,10 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, #ifndef USE_NTLM auth &= ~CURLAUTH_NTLM; /* no NTLM without SSL */ #endif +#ifndef USE_NTLM_SSO + auth &= ~CURLAUTH_NTLM_SSO; /* no NTLM single-sign-on without SSL + and ntlm_auth */ +#endif #ifndef USE_HTTP_NEGOTIATE auth &= ~CURLAUTH_GSSNEGOTIATE; /* no GSS-Negotiate without GSSAPI or WINDOWS_SSPI */ @@ -1467,6 +1471,10 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, #ifndef USE_NTLM auth &= ~CURLAUTH_NTLM; /* no NTLM without SSL */ #endif +#ifndef USE_NTLM_SSO + auth &= ~CURLAUTH_NTLM_SSO; /* no NTLM single-sign-on without SSL + and ntlm_auth */ +#endif #ifndef USE_HTTP_NEGOTIATE auth &= ~CURLAUTH_GSSNEGOTIATE; /* no GSS-Negotiate without GSSAPI or WINDOWS_SSPI */ @@ -3002,7 +3010,8 @@ ConnectionExists(struct SessionHandle *data, } if((needle->handler->protocol & CURLPROTO_FTP) || ((needle->handler->protocol & CURLPROTO_HTTP) && - (data->state.authhost.want==CURLAUTH_NTLM))) { + ((data->state.authhost.want==CURLAUTH_NTLM) || + (data->state.authhost.want==CURLAUTH_NTLM_SSO)))) { /* This is FTP or HTTP+NTLM, verify that we're using the same name and password as well */ if(!strequal(needle->user, check->user) || |