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

Re: FW: git via http protocol _and_ a proxy using NTLM authentication -- git 1.5.4.2 & curl 7.18.0

From
Daniel Stenberg <daniel@haxx.se>
Date
Feb 26, 2008, 22:01 UTC
Message-ID
<Pine.LNX.4.64.0802262254240.13009@yvahk3.pbagnpgbe.fr>
In-Reply-To
<AA28F077645B324881335614E4F7C428034C00@win-ex01.bench.com>
On Tue, 26 Feb 2008, Ken.Fuchs@bench.com wrote:
> +       curl_easy_setopt(result, CURLOPT_PROXYAUTH, (long)CURLAUTH_NTLM);
> +       curl_easy_setopt(result, CURLOPT_PROXYUSERPWD,
> +               "<user-id>:<password>");

First, you should rather allow any auth and not just the specific one you want.

Then, the userid and password is probably better passed in embedded in the proxy URL as that's given on the command line/environment already. Or as separate arguments.

> It seems that git fetch (via HTLM proxy) works until
>
>> fatal: Couldn't find remote ref HEAD

Well, the CURLOPT_PROXY is set in transport.c as well which your patch didn't address. If that's the case, I figure the verbose output should've shown some auth failures with the proxy?

Previous: ken.fuchs@bench.com
Message 2 of 2 in “FW: git via http protocol _and_ a proxy using NTLM authentication -- git 1.5.4.2 & curl 7.18.0”
  1. ken.fuchs@bench.comFeb 26, 2008
  2. Daniel StenbergFeb 26, 2008

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.