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

Re: Git + mod_auth_kerb

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jul 22, 2014, 23:32 UTC
Message-ID
<20140722233243.GE5616@vauxhall.crustytoothpaste.net>
In-Reply-To
<xmqqfvhtgwgp.fsf@gitster.dls.corp.google.com>
On Tue, Jul 22, 2014 at 10:00:22AM -0700, Junio C Hamano wrote:
Show 17 quoted lines
> "brian m. carlson" <sandals@crustytoothpaste.net> writes:
> 
> > So git uses libcurl with CURLAUTH_ANY.  In order for authentication to
> > work with libcurl, you have to supply a username.  If you specify it in
> > the URL, the libcurl realizes that it can use Kerberos, and goes on its
> > merry way.
> >
> > If you don't specify the username in the URL, git notices that
> > authentication has failed, and asks the credential store for a username
> > and password.  git does not know that a password is not needed, so the
> > credential subsystem prompts for one anyway.
> 
> Hmmm, does this hint that we might want to be able to tell the
> credential subsystem that it is sufficient to have name without
> password, or allow the credential subsystem to say "I am giving you
> sufficient information" when it returns only username without
> password?

Possibly. In the --negotiate documentation of the curl man page, it says:

  When using this option, you must also provide a fake -u, --user option
  to activate the authentication code properly. Sending a '-u :' is
  enough as the user name and password from the -u option aren't
  actually used.

That implies to me that setting an empty value for CURLOPT_USERNAME in git might be sufficient to solve the problem.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
Previous: Junio C HamanoNext: brian m. carlson
Message 6 of 7 in “Git + mod_auth_kerb”
  1. Jean-Francois BouchardJul 21, 2014
  2. brian m. carlsonJul 21, 2014
  3. Jean-Francois BouchardJul 22, 2014
  4. brian m. carlsonJul 23, 2014
  5. Junio C HamanoJul 22, 2014
  6. brian m. carlsonJul 22, 2014
  7. brian m. carlsonJul 26, 2014

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.