public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Johan Laenen <johan.laenen+cygwin@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Https proxy auth issue with git in cygwin 2.2.1
Date: Fri, 16 Oct 2015 12:30:00 -0000	[thread overview]
Message-ID: <loom.20151016T142002-602@post.gmane.org> (raw)
In-Reply-To: <20151005202249.GM14466@dinwoodie.org>

Adam Dinwoodie <adam <at> dinwoodie.org> writes:

> I think I've found the problem, and you're right -- Git has changed the
> way it makes the curl call.  The culprit is commit 5841520b in the
> upstream Git repository, which has the following commit message:
> 
> | http: always use any proxy auth method available
> |
> | We set CURLOPT_PROXYAUTH to use the most secure authentication
> | method available only when the user has set configuration variables
> | to specify a proxy.  However, libcurl also supports specifying a
> | proxy through environment variables.  In that case libcurl defaults
> | to only using the Basic proxy authentication method, because we do
> | not use CURLOPT_PROXYAUTH.
> |
> | Set CURLOPT_PROXYAUTH to always use the most secure authentication
> | method available, even when there is no git configuration telling us
> | to use a proxy. This allows the user to use environment variables to
> | configure a proxy that requires an authentication method different
> | from Basic.
> 
> I can't confirm this is the problem, though, as I don't have a test
> environment that uses NTLM.
> 
> Do you have the ability to either run a test version of Git I can
> produce that patches out this change, or (better) to build Git yourself
> without this patch to see if that is indeed the change that's causing
> the problem?
> 

Hi There,

I can into the exact same problem after upgrading to the latest cygwin version. 

So, following your advice, I took git-2.6.1.tar.gz from github, untarred,
and modified http.c:

$ diff git-2.6.1/http.c t/git-2.6.1/http.c
466,467c466,468
<     if (curl_http_proxy) {
<         curl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy);
---
>       if (curl_http_proxy) {
>               curl_easy_setopt(result, CURLOPT_PROXY, curl_http_proxy);
>       }
469c470
<         curl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
---
>       curl_easy_setopt(result, CURLOPT_PROXYAUTH, CURLAUTH_ANY);
471d471
<     }

One make configure, ./configure, make and make install I can confirm that
unpatching the change undoes the problem :)

> Adam
> 
> 


Johan


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2015-10-16 12:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-21  6:55 Lukasz Pielak
2015-09-21 10:20 ` Andrey Repin
2015-09-21 10:32   ` Lukasz Pielak
2015-09-21 10:31 ` Adam Dinwoodie
2015-09-21 10:39   ` Achim Gratz
2015-09-25  7:20   ` LukaszPielak
2015-10-05 20:23     ` Adam Dinwoodie
2015-10-16 12:30       ` Johan Laenen [this message]
2015-11-23 22:40         ` Adam Dinwoodie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20151016T142002-602@post.gmane.org \
    --to=johan.laenen+cygwin@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).