Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Authentication problem when connecting to Git in TFS after migrating from JGit 3.2 to 4.1
Authentication problem when connecting to Git in TFS after migrating from JGit 3.2 to 4.1 [message #1779309] Fri, 05 January 2018 08:28 Go to next message
Lars Heinemann is currently offline Lars HeinemannFriend
Messages: 1
Registered: January 2018
Junior Member
We are using JGit to access a Git within a Microsoft Team Foundation Server (TFS). This used to work fine with JGit 3.2.

We recently migrated to JGit 4.1 and now get the following error when performing a fetch:
org.eclipse.jgit.api.errors.TransportException: [...]: cannot open git-upload-pack

Internally this is caused by the following exception:

GSSException: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Attempt to obtain new INITIATE credentials failed! (null)))

As far as we understand the following happens:

When trying to establish the connection, the server sends the following header
WWW-Authenticate=[NTLM, Negotiate, Basic realm="[...]"]
indicating the supported authentication schemes.
With 3.2, JGit would choose Basic and the connection is established. However with JGit 4.1, Negotiate is chosen leading to the error above, which is expected as we haven't set up Kerberos since we want to use Basic authentication.

The problem is that there does not seem to be a way to tell JGit to use Basic authentication even if the server would support a more secure scheme.

Any ideas how to address this problem?
Re: Authentication problem when connecting to Git in TFS after migrating from JGit 3.2 to 4.1 [message #1779416 is a reply to message #1779309] Sat, 06 January 2018 20:32 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1272
Registered: July 2009
Senior Member
Can you try with 4.10 or nightly build ? There were some changes in this area.
Previous Topic:Can't get SimpleHTTPServer working
Next Topic:Pulled conflict file not resolvable
Goto Forum:
  


Current Time: Thu Sep 19 09:20:01 GMT 2024

Powered by FUDForum. Page generated in 0.04027 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top