git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Patchset NTLM-Authentication

From
Daniel Stenberg <daniel@haxx.se>
Date
Feb 21, 2012, 19:02 UTC
Message-ID
<alpine.DEB.2.00.1202211954160.5167@tvnag.unkk.fr>
In-Reply-To
<7vfwe4gj4n.fsf@alter.siamese.dyndns.org>
On Tue, 21 Feb 2012, Junio C Hamano wrote:
> If it turns out that we can set CURLOPT_PROXYAUTH always to CURLAUTH_ANY 
> without compromising security, then an explanation why this does not have to 
> be optional, similar to what justified 525ecd2, needs to be there instead, 
> and the patch needs to be tweaked to drop the configuration bits.
Allow me to provide some libcurl info on this!

Setting it to ANY will unconditionally cause an extra roundtrip which you can avoid if you know what auth type the proxy wants and you set it at once. With ANY set, libcurl will first "probe" the proxy to figure out which type to use and then go on and actually do it in a second request (and possibly even a third request in some cases).

It can actually be seen as a security _improvement_ in some cases where for example Basic auth (user+password sent as plain text) can be avoided in preference to a more secure mechanism, but I think that's a rather rare case for git.

IMO, if ANY is considered fine for normal host authentication I think it could be considered fine for proxy authentication as well.

-- 
  / daniel.haxx.se
Previous: Junio C Hamano
Message 5 of 5 in “Patchset NTLM-Authentication”
  1. Schmidt, MarcoFeb 21, 2012
  2. Thomas RastFeb 21, 2012
  3. Thomas RastFeb 21, 2012
  4. Junio C HamanoFeb 21, 2012
  5. Daniel StenbergFeb 21, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.