Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS, windows authentication and commandline git (msysgit)

Tags:

git

tfs

I'm trying to clone GIT repository being hosted by a corporate TFS server.

I'm able to clone this repository using VS2013. But when coming to command-line git git version 1.9.4.msysgit.2, git.exe fails with an Authentication failed for 'uri'.

On my first tries, I gave my domain credentials. With several case combinations (DOMAIN\user, domain\user, and so on).

Then I found the page Team Foundation Server 2013 Express - Can't connect to git repo via command line, so I've tried with no authentication at all.

K:\GitRepositories>git clone http://tfs:8080/tfs/CegidTest2013/IVO_TestBuilds/_git/IntegrationTestsOverrides
Cloning into 'IntegrationTestsOverrides'...
Username for 'http://tfs:8080':
Password for 'http://tfs:8080':
fatal: Authentication failed for 'http://tfs:8080/tfs/CegidTest2013/IVO_TestBuilds/_git/IntegrationTestsOverrides/'

No luck.

While having a look at the network traffic, I see that the client's NTLMSSP_NEGOTIATE gets an NTLMSSP_CHALLENGE response. The client doesn't proceed further.

Could this be related to the fact that the TFS Server belongs to another domain than the user currently logged? This shouldn't be an issue.

I can't modify the configuration of the server without proof (that's a TFS production server, I'm not the admin).

like image 781
nilleb Avatar asked Oct 14 '14 13:10

nilleb


1 Answers

Originally a comment to the above question, posting here as it is the answer

Thanks @giulio-vian. I've not updated my post since a while, and I have to say that when I started using git for windows v2.4.2.windows.1 (available here) the problem has disappeared. I have also to say that git for windows 1.9.5 worked for some users (and not for some others). The availability of Git for Windows 2.4 has definitely solved the problem.

like image 148
nilleb Avatar answered Sep 30 '22 18:09

nilleb