cURL / Mailing Lists / curl-users / Single Mail


Re: Using Curl against SharePoint 2010, authentication fails, NTLM vs. GSS?

From: Derek Atkins <>
Date: Thu, 07 Apr 2011 08:43:31 -0400

Dan Fandrich <> writes:

> On Wed, Apr 06, 2011 at 04:20:45PM -0400, Derek Atkins wrote:
>> Here is the run and output of the ascii trace:
>> 0000: WWW-Authenticate: NTLM ...
>> ... <cut>
>> 0140: A==
>> == Info: gss_init_sec_context() failed: : Cannot determine realm for numeric hos
>> t address<= Recv header, 29 bytes (0x1d)
>> 0000: WWW-Authenticate: Negotiate
> I took a quick look at the code, and it looks like cases where an
> authentication method has an error during initialization, such as this one,
> are treated as though the authentication has been attempted and has failed.
> Curl_http_input_auth() should really be changed to skip an authentication
> method when there's an error initializing it.

Thanks, Dan.

I'm happy to test a patch to see if it works. How do I file an official
bug report? (Do I have to?)


       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL:    PP-ASEL-IA     N1NWH
       warlord_at_MIT.EDU                        PGP key available
List admin:
Received on 2011-04-07