Re: [PATCH] http(s): automatically try NTLM authentication first

3 messages, 3 authors, 2017-02-25 · open the first message on its own page

Re: [PATCH] http(s): automatically try NTLM authentication first

From: Junio C Hamano <hidden>
Date: 2017-02-23 20:37:43

Jeff King [off-list ref] writes:
I suspect it isn't enough to help without 2/2. This will tell curl that
the server does not do Negotiate, so it will skip the probe request. But
Git will still feed curl the bogus empty credential.

That's what 2/2 tries to fix: only kick in the emptyAuth hack when there
is something besides Basic[1] to try. The way it is written adds an
In your [1] you wanted to mention that Digest would have the same
property as Basic, or something like that?
extra "auto" mode to emptyAuth, as I wanted to leave "emptyauth=true" as
a workaround in case the "auto" behavior does not work. And then I
turned on "auto" by default, since that was what the discussion was
shooting for.

But if we are worried about turning on emptyAuth everywhere, the auto
behavior could be tied to emptyauth=true (and have something like
"emptyauth=always" to _really_ force it). I don't have an opinion there.
I do not have a strong opinion, either, but it sounds like that even
the "disable emptyAuth hack if the server is Basic only" variant
would be much better than setting emptyAuth on by default.  At least
the user whose issue was reported in Dscho's message would be fixed
by such a variant, I would think (i.e. talking to a server with no
Negotiate and emptyAuth set to true results in no attempt to give
the user a chance to tell who s/he is --- your 2/2 will turn
emptyAuth off in that case).

Re: [PATCH] http(s): automatically try NTLM authentication first

From: Jeff King <hidden>
Date: 2017-02-23 20:48:37

On Thu, Feb 23, 2017 at 12:37:25PM -0800, Junio C Hamano wrote:
Jeff King [off-list ref] writes:
quoted
I suspect it isn't enough to help without 2/2. This will tell curl that
the server does not do Negotiate, so it will skip the probe request. But
Git will still feed curl the bogus empty credential.

That's what 2/2 tries to fix: only kick in the emptyAuth hack when there
is something besides Basic[1] to try. The way it is written adds an
In your [1] you wanted to mention that Digest would have the same
property as Basic, or something like that?
Oops, yeah. What I was going to say is that we may want a list of auth
types where we _do_ want the hack on, rather than ones where we know it
does not work. People are more likely to notice when the list is wrong,
then.
quoted
But if we are worried about turning on emptyAuth everywhere, the auto
behavior could be tied to emptyauth=true (and have something like
"emptyauth=always" to _really_ force it). I don't have an opinion there.
I do not have a strong opinion, either, but it sounds like that even
the "disable emptyAuth hack if the server is Basic only" variant
would be much better than setting emptyAuth on by default.  At least
the user whose issue was reported in Dscho's message would be fixed
by such a variant, I would think (i.e. talking to a server with no
Negotiate and emptyAuth set to true results in no attempt to give
the user a chance to tell who s/he is --- your 2/2 will turn
emptyAuth off in that case).
Yes, I agree that the "auto" behavior is better than defaulting to
"true". I am speaking from the perspective of git.git, which is
currently defaulting to "false". It is not clear to me if "auto" is
better than "false" because of the security implications.

For Git for Windows, it seems like the auto behavior would be a strict
improvement over the "true" default they've been shipping.

-Peff

Re: [PATCH] http(s): automatically try NTLM authentication first

From: Johannes Schindelin <hidden>
Date: 2017-02-25 11:53:02

Hi Peff,

On Thu, 23 Feb 2017, Jeff King wrote:
For Git for Windows, [PATCH 2/2] seems like the auto behavior would be a
strict improvement over the "true" default they've been shipping.
Absolutely. Thank you for your tremendous help!

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help