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
Mike Hommey <mh@glandium.org>
Date
Feb 27, 2008, 07:29 UTC
Message-ID
<20080227072952.GA27806@glandium.org>
In-Reply-To
<20080227072012.GA23423@glandium.org>
On Wed, Feb 27, 2008 at 08:20:12AM +0100, Mike Hommey wrote:
Show 29 quoted lines
> On Tue, Feb 26, 2008 at 05:46:21PM -0600, Ken.Fuchs@bench.com wrote:
> > > Well, the CURLOPT_PROXY is set in transport.c as well which 
> > > your patch didn't address.
> > 
> > Thanks, I just did a similar patch to transport.c:
> > 
> > $ diff -u ../git-1.5.4.2/transport.c.orig \
> >           ../git-1.5.4.2/transport.c
> > @@ -456,7 +456,8 @@
> >         if (transport->remote->http_proxy)
> >                 curl_easy_setopt(slot->curl, CURLOPT_PROXY,
> >                                  transport->remote->http_proxy);
> > -
> > +       curl_easy_setopt(slot->curl, CURLOPT_PROXYAUTH,
> > (long)CURLAUTH_NTLM);
> > +       curl_easy_setopt(slot->curl, CURLOPT_PROXYUSERPWD,
> > "<user-id>:<password>");
> >         if (start_active_slot(slot)) {
> >                 run_active_slot(slot);
> >                 if (results.curl_result != CURLE_OK) {
> > $
> 
> Starting with curl 7.14.1, you're supposed to be able to use the
> http://user:pass@proxy/ syntax, though I'm not sure it deals well with
> NTLM domains. You can probably leave CURLOPT_PROXYUSERPWD out if you
> set your proxy url correctly.
> 
> As for CURLOPT_PROXYAUTH, it would be better to set it from another
> config.
Or we should set it to CURLOPT_AUTHANY by default.
Mike
Previous: Mike HommeyNext: Mike Hommey
Message 3 of 9 in “RE: 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. Mike HommeyFeb 27, 2008
  3. Mike HommeyFeb 27, 2008
  4. Set proxy override with http_init()Mike Hommey, Feb 27, 2008
  5. Junio C HamanoFeb 27, 2008
  6. Daniel BarkalowFeb 27, 2008
  7. Mike HommeyFeb 27, 2008
  8. Set proxy override with http_init()Mike Hommey, Feb 27, 2008
  9. Daniel BarkalowFeb 27, 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.