2

I have a problem with git clone from TFS. Client is Ubuntu 14.04, TFS certificates are available because https works properly. Proxy is unset in Git and global env.

Working scenarios:

A. git clone https://url.to.my.tfs/       
B. git clone https://user@url.to.my.tfs/  

A. requests username and password, type them, all proceed good.
B. Git don't request a password. Cloning is proceed good. So communication linux(git)-kerberos(TFS) is already OK.

Modified A.) pressed Enter when git request for username and password I get:

fatal: Authentication failed for https://url.to.my.tfs

So, where is the problem? How to skip password typing?

PEHLAJ
  • 9,980
  • 9
  • 41
  • 53
Boqler
  • 68
  • 1
  • 6
  • The whole purpose of kerberos is so you don't have to type a username/password. The server coordinates it so the server side can run as the client account without passing anything. Not even a hash. That's why it is so secure. – Brain2000 Apr 07 '21 at 15:35

1 Answers1

0

fatal: Authentication failed for... is exactly because of that you didn't type user/pass when requested.

And git clone https://user@url.to.my.tfs/ and no password requests from Git can be because of Git credential.helper cache used on HTTPS protocols. https://git-scm.com/book/gr/v2/Git-Tools-Credential-Storage

This answered question relates to HTTPS on Github but it also applies to your scenario. Is there a way to skip password typing when using https:// on GitHub? There you can find option that suits you best.

Community
  • 1
  • 1
Casey
  • 1,402
  • 1
  • 19
  • 23
  • 1
    Ok, it make sens - I will try this tommorow, but this is only way to skip typing username/password? Git can't resolve actually logged user using kerberos tickets? Ubuntu is connected to the same AD as TFS and I use domain user for this operations. – Boqler May 18 '17 at 09:25