From: Adam Dinwoodie <adam@dinwoodie.org>
To: cygwin@cygwin.com
Subject: Re: Https proxy auth issue with git in cygwin 2.2.1
Date: Mon, 23 Nov 2015 22:40:00 -0000 [thread overview]
Message-ID: <20151123223117.GB14466@dinwoodie.org> (raw)
In-Reply-To: <loom.20151016T142002-602@post.gmane.org>
On Fri, Oct 16, 2015 at 12:26:14PM +0000, Johan Laenen wrote:
> 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 :)
Hi Johan,
I've just spotted this email while trawling through other Cygwin/Git
related things; somehow I missed it when it was first sent.
I see you've raised this on the upstream Git mailing list already, and
there's been some useful discussion there, so I'm not proposing any
further discussion on this list. I just wanted to reply with my Git
maintainer hat on and acknowledge the discussion has moved upstream.
Cheers,
Adam
--
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
prev parent reply other threads:[~2015-11-23 22:31 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
2015-11-23 22:40 ` Adam Dinwoodie [this message]
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=20151123223117.GB14466@dinwoodie.org \
--to=adam@dinwoodie.org \
--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).