cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-2814005 ] HTTP Proxy with Windows SSPI

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Tue, 30 Jun 2009 21:18:10 +0000

Bugs item #2814005, was opened at 2009-06-29 16:17
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2814005&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: http
Group: wrong behaviour
Status: Open
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: Marek DÄ…bek (lican)
Assigned to: Daniel Stenberg (bagder)
Summary: HTTP Proxy with Windows SSPI

Initial Comment:
When using libcurl with proxy authentication everything works as expected. The only problem is that the native windows mechanisms allow the username and password set to NULL (the currently logged in user credentials are used). Libcurl doesn't allow that to happen and with that some of the functionality available for Windows users is missing. The only problem is the line 4257 in url.c:

  conn->bits.proxy_user_passwd =
        (bool)(NULL != data->set.str[STRING_PROXYUSERNAME]);

In my opinion it should be changed to:

  conn->bits.proxy_user_passwd =
#ifdef USE_WINDOWS_SSPI
        conn->bits.proxy;
#else
        (bool)(NULL != data->set.str[STRING_PROXYUSERNAME]);
#endif

This allows the user to pass NULL pointers for the username and password thus allowing to authenticate with native Windows mechanisms.

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2009-06-30 23:18

Message:
As I mentioned on the mailing list, I don't think this is a good way to fix
the problem. And I think we can continue discussing this on the list.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2814005&group_id=976
Received on 2009-06-30

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET