Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » WWW-Authenticate: NTLM
WWW-Authenticate: NTLM [message #1196669] Tue, 19 November 2013 09:35 Go to next message
Eclipse UserFriend
I would like to clone (Project Explorer -> Import -> Projects from Git -> URI -> ...) a Git repository from a private instance of Microsofts Team Foundation Server (2013 RC). The default authentication scheme is NTLM.

EGit seems to ignore the given username and password and instead uses my Windows username "FOO\user". (I can see a seemingly successful NTML negotiation in the network stream.)

Is this a bug or wrong expectations / understanding on my part?

Thanks.
Re: WWW-Authenticate: NTLM [message #1216687 is a reply to message #1196669] Thu, 28 November 2013 10:36 Go to previous messageGo to next message
Eclipse UserFriend
JGit doesn't yet support this, this may change with the option to use apache httpclient
see https://git.eclipse.org/r/#/c/15124/
Re: WWW-Authenticate: NTLM [message #1405859 is a reply to message #1216687] Fri, 08 August 2014 06:17 Go to previous messageGo to next message
Eclipse UserFriend
I am on JGit 3.4.1 (org.eclipse.jgit-3.4.1.201406201815-r.jar)

What (else) do I need to do to be able to clone a repository from NTLM authentiocated remote repository (more specifically TFS-Git)?

The code snippet itself is simple:
    Git.cloneRepository()
       .setURI(getRepository())
       .setDirectory(getDirectoryFile())
       .call();


It is not working for me in the sense that I do get authenticated on windows machine, but not on Mac or Linux.

I've tried to search the internets for the solution but the solution seems to escape me...

[Updated on: Tue, 12 August 2014 02:30] by Moderator

Re: WWW-Authenticate: NTLM [message #1481816 is a reply to message #1405859] Fri, 21 November 2014 03:42 Go to previous message
Eclipse UserFriend
Hi,

try using the version "3.5.2.201411120430-r". It works for me.

I have installed TFS 2013 Update 3 and both of the latest git versions 3.5.2 and 3.6 works fine with the Git repository.

Note: one of the dependencies is httpclient which, I suppose, handles the credentials.

Regards,
Petr
Previous Topic:Secure Reference (CMAC instead of HMAC)?
Next Topic:TeamProjectSet Export
Goto Forum:
  


Current Time: Thu Jul 10 02:18:51 EDT 2025

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

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

Back to the top