curl-library
Re: Problem with Negotiate Support
Date: Thu, 22 Sep 2011 09:03:06 +0530
On Wed, Sep 21, 2011 at 7:35 PM, Guenter <lists_at_gknw.net> wrote:
> Am 21.09.2011 05:58, schrieb Pete Zaitcev:
>
> >ok, I've rebuild the MinGW32-devel package with SPNEGO support enabled:
> >http://www.gknw.net/mirror/curl/win32/<http://www.gknw.net/mirror/curl/win32/>
> >please check if that works better!
>
I moved my code to windows and checked with the library having SPNEGO
support, but still it doesn't works.
I am getting the same error
* About to connect() to 10.31.251.161 port 5985 (#0)
* Trying 10.31.251.161... * connected
> POST /wsman HTTP/1.1
Host: 10.31.251.161:5985
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: ENVISION_WINRM_EVENT_COLLECTOR
SOAPAction:"http://10.31.251.161:5985/wsman"
Content-Length: 1743
Expect: 100-continue
< HTTP/1.1 401
< Server: Microsoft-HTTPAPI/2.0
< WWW-Authenticate: Negotiate
< WWW-Authenticate: Kerberos
< WWW-Authenticate: Basic realm="WSMAN"
< WWW-Authenticate: CredSSP
< Date: Thu, 22 Sep 2011 03:40:04 GMT
< Connection: close
< Content-Length: 0
<
* Closing connection #0
* Issue another request to this URL: 'http://10.31.251.161:5985/wsman'
* About to connect() to 10.31.251.161 port 5985 (#0)
* Trying 10.31.251.161... * connected
* Server auth using GSS-Negotiate with user 'collection\administrator'
> POST /wsman HTTP/1.1
Authorization: Negotiate
TlRMTVNTUAABAAAAt4II4gAAAAAAAAAAAAAAAAAAAAAFASgKAAAADw==
Host: 10.31.251.161:5985
Accept: */*
Content-Type: application/soap+xml;charset=UTF-8
User-Agent: ENVISION_WINRM_EVENT_COLLECTOR
SOAPAction:"http://10.31.251.161:5985/wsman"
Content-Length: 1743
Expect: 100-continue
< HTTP/1.1 401
* Authentication problem. Ignoring this.
< WWW-Authenticate: Negotiate
TlRMTVNTUAACAAAAFAAUADgAAAA1goninB8vXEiMagsAAAAAAAAAAOwA7ABMAAAABgGwHQAAAA9DAE8ATABMAEUAQwBUAEkATwBOAAIAFABDAE8ATABMAEUAQwBUAEkATwBOAAEAFABNAEEATgBDAEgARQBTAFQARQBSAAQALgBjAG8AbABsAGUAYwB0AGkAbwBuAC4AZQBuAHYAaQBzAGkAbwBuAC4AYwBvAG0AAwBEAE0AQQBOAEMASABFAFMAVABFAFIALgBj
8AbABsAGUAYwB0AGkAbwBuAC4AZQBuAHYAaQBzAGkAbwBuAC4AYwBvAG0ABQAuAGMAbwBsAGwAZQBjAHQAaQBvAG4ALgBlAG4AdgBpAHMAaQBvAG4ALgBjAG8AbQAHAAgAVmP4UNl4zAEAAAAA
< Server: Microsoft-HTTPAPI/2.0
< Date: Thu, 22 Sep 2011 03:40:04 GMT
< Content-Length: 0
* HTTP error before end of send, stop sending
<
* Closing connection #0
As per my knowledge of negotiate protocol, the server first returns a 401
error code and get again the client send the request and server again
returns a 401 error code and then again the client send the request with the
sever accepts. But with libcurl we are closing the connection at the second
request itself.
Do we have do something extra here ... if wanted i can share my code so that
you can have a look at that, to see if i am missing something.
Thanks
Amit
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-22