Bug 547150 - Git asks for user credentials again and again and fails to authorise (HTTPS; Microsoft TFS)
Summary: Git asks for user credentials again and again and fails to authorise (HTTPS; ...
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 5.3   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-10 03:42 EDT by Ivo Ivanov CLA
Modified: 2020-08-17 07:23 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivo Ivanov CLA 2019-05-10 03:42:07 EDT
When I try to fetch, pull or push from/to my GIT server I am prompted with the dialog to enter my credentials again and again. After the 3rd time EGit shows an error "not authorised".
From the command line I can do all the operations without a problem.
My OS is Windows 10 PRO x64. My GIT is in Microsoft TFS Server.
The connection goes over HTTPS.
I reimported the project (and repository) from an old setup on my old Windows 7 machine.

I have set the HOME environment variable to point correctly to my home folder.
Comment 1 Ivo Ivanov CLA 2019-05-10 03:48:58 EDT
I am using now Eclipse 2019-03.
On my old machine I was using Eclipse 2018-XX.

I have the latest GIT - 2.21.0x64 client installed.
Comment 2 Thomas Wolf CLA 2019-05-10 03:58:37 EDT
I presume on your old machine it worked?

So, first step would be to use the same Eclipse on your new machine as on your old one. If it then still doesn't work, something must be configured differently on your new machine. Or it might be a problem with different Java versions?

If you still have your old machine, you could also try using Eclipse 2019-03 there. That way you could narrow down whether the problem is in Eclipse or with the new machine (or the configuration there).
Comment 3 Michael Keppler CLA 2019-05-25 02:51:51 EDT
Command line git for windows supports domain authentication and NTLM authentication: https://github.com/git-for-windows/git/wiki/FAQ#how-do-i-access-a-repository-hosted-on-a-microsoft-team-foundation-server-inside-a-windows-domain

Egit doesn't support those, therefore being able to pull from cmd does not guarantee egit being able to pull. You may need to install a local NTLM proxy like cntlm that "translates" the authentication request, or you may ask your git server admin to provide a different authentication method at the server.
Comment 4 Andre Bossert CLA 2020-08-17 07:18:31 EDT
With Eclipse 4.15 (2020-03) the dialog appears if NTLM is used and right credentials are entered - no error is shown to the user.
Comment 5 Andre Bossert CLA 2020-08-17 07:23:56 EDT
It looks related to missing support in JGit (511935) --> HttpAuthMethod missing NTLM scheme.