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

Git + mod_auth_kerb

From
JBJean-Francois Bouchard <jfbouchard@accedian.com>
Date
Jul 21, 2014, 21:06 UTC
Message-ID
<CAPYmS35cgcEOfKvT17tULYyxL5GgXBavkD6anhV6yJtdoXVE9Q@mail.gmail.com>
Hello,

We are currently working on a single sign on setup for our git install. We are using git 2.0.2 (ubuntu) plus apache/2.2.22 mod_auth_kerb on the server side. Here some scenario we are trying to accomplish :

-Without Kerberos ticket stored. Git ask for username/password. Result = Authentication failed

-Kerberos ticket in store and BAD password : Git ask for username/password. Result = Authentication failed

-Kerberos ticket in Store entering good password : Git ask for username/password. Result = Authentication failed on some host, other works

-Kerberos ticket in Store and embedding the username in the URI (aka https://username@repo) Git don't ask for anything or ask for password Result = Works on some host, other request the password. (Will fail if the kerberos ticket not in store)

This is a very strange behaviour. It seems to be cause by the way libcurl and git interact and the way the authentication goes (Negociate first, then basic auth). I have tried to use the helper to store invalid authentication information. With not much success.

Any idea ?
Thanks,
JF
-- 
Avis de confidentialité

Les informations contenues dans le présent message et dans toute pièce qui 
lui est jointe sont confidentielles et peuvent être protégées par le secret 
professionnel. Ces informations sont à l’usage exclusif de son ou de ses 
destinataires. Si vous recevez ce message par erreur, veuillez s’il vous 
plait communiquer immédiatement avec l’expéditeur et en détruire tout 
exemplaire. De plus, il vous est strictement interdit de le divulguer, de 
le distribuer ou de le reproduire sans l’autorisation de l’expéditeur. 
Merci.

Confidentiality notice

This e-mail message and any attachment hereto contain confidential 
information which may be privileged and which is intended for the exclusive 
use of its addressee(s). If you receive this message in error, please 
inform sender immediately and destroy any copy thereof. Furthermore, any 
disclosure, distribution or copying of this message and/or any attachment 
hereto without the consent of the sender is strictly prohibited. Thank you.
Next: brian m. carlson
Message 1 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.