cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How-To use NTLM proxy authentication?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 26 Apr 2005 23:25:46 +0200 (CEST)

On Tue, 26 Apr 2005, Augustus Saunders wrote:

> Daniel, I have finally gotten around to trying version 13.2, and it looks
> like the things I reported are fixed for me. Yay! However, I found another
> bug with choosing the authentication type. In url.c, the following code
> appears in the Curl_disconnect function:
>
> data->state.authproxy.picked =
> data->state.authhost.want;
>
> This causes any choice regarding authentication method to be overwritten.
> Somewhere along the way, authhost.want gets set to 1, which winds up as
> BASIC authentication.

I can't find where or why it would set 'want' to 1. Can you?

> So I commented that line out and things seem to work ok.

Hm. What if you just set it to 0 (zero) instead? To me, that seems like the
most proper thing to do there to reset it back to original state.

> Also, for SSPI, I compiled with it turned on. Do I have to do anything for
> it to work? I haven't set up a domain controller here to test with yet; is
> it likely to "just work"?

You need to set CURLOPT_USERPWD to "" (a zero length name/password), and
enable NTLM auth.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-04-26