You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No Credentials are available when signed in with Microsoft Account #3829
Hi there,
I'm currently facing a somehow weird issue. I tried to clone a repository that uses git lfs, but checkout fails with the message api error: No credentials are available in the security package
credential.helper is set to "manager"
The credentials for the repository are stored in the windows credential manager. Access to repositories on the same server that do not use git lfs are successful.
The error only occurs if the windows user is signed in with a Microsoft Account on Windows 10.
Hi there,
I'm currently facing a somehow weird issue. I tried to clone a repository
that uses git lfs, but checkout fails with the message api error: No
credentials are available in the security package
credential.helper is set to "manager"
The credentials for the repository are stored in the windows credential
manager. Access to repositories on the same server that do not use git lfs
are successful.
The error only occurs if the windows user is signed in with a Microsoft
Account on Windows 10.
Git Version: 2.23.0.windows1
Git lfs Version: 2.8.0
Git Credential Manager Version: 1.19.0
When using a local user account on the same machine, everything works as
expected.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3829?email_source=notifications&email_token=AKJITTPZODK2F3MK7ZRDKZ3QKTDBLA5CNFSM4IYW3EX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HMVSJKA>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKJITTIOZUJLC3P5IP4MISLQKTDBLANCNFSM4IYW3EXQ>
.
Are you trying to use Kerberos, NTLM, or Basic authentication? Running the command with GIT_CURL_VERBOSE=1 GIT_TRACE=1 GIT_TRANSFER_TRACE=1 should show which auth type you're using. If you get Negotiate and the Base64-encoded part starts with TlRM, then you're using NTLM; otherwise, you're using Kerberos.
I suspect what's going on here is that you're trying to use Kerberos and Git LFS doesn't support that at the moment. If that's the case, you'll probably want to either use NTLM or Basic authentication.
Hi,
that would not why it works with the same configuration on a non Microsoft Account.
Anyway, I did a test having the switches you mentioned.
The result is as expected.
The server requests authentication by LFS-Authenticate: NTLM
The client sends the request with a www-Authenticate header Www-Authenticate: NTLM TlRM*****
I'm really not sure why this is occurring. This message is from the remote server when performing a batch request, so for some reason the server is (presumably) complaining about your credentials.
None of the maintainers use NTLM with Git LFS, so while we're happy to accept patches for NTLM-related issues, we aren't really able to troubleshoot them. I'd suggest trying a different authentication mechanism or reaching out to your Git server admin for assistance.
Probably it is complaining, because it is not correct. ;) I do know the different authentication mechanisms and how they work. The question is, why are the correct credentials used, with a local or domain windows account, wheres it is not on an MS Account. Maybe, I'll track that down in code on my own - but that might take a while.
As mentioned in #3881, we'll need someone who can build and test with NTLM to troubleshoot this problem. None of the core team members use NTLM, so without someone willing to fix this, it will remain as it is.
When using user FOO\user on an non domain joined machine and wanting to access an resource with user BAR\user, GIT LFS is supposed to use the credentials in the Windows Credential manager. GIT properly uses those, but GIT LFS seems to ignore them.
NTLM is going to be removed in the next release (as outlined in #4247), which is likely to happen June (this month) or July. So there will be no further fixes forthcoming here, and as a result I'm going to close this issue.
Activity
ddevyatyar commentedon Sep 21, 2019
bk2204 commentedon Sep 23, 2019
Hey,
Are you trying to use Kerberos, NTLM, or Basic authentication? Running the command with
GIT_CURL_VERBOSE=1 GIT_TRACE=1 GIT_TRANSFER_TRACE=1should show which auth type you're using. If you getNegotiateand the Base64-encoded part starts withTlRM, then you're using NTLM; otherwise, you're using Kerberos.I suspect what's going on here is that you're trying to use Kerberos and Git LFS doesn't support that at the moment. If that's the case, you'll probably want to either use NTLM or Basic authentication.
MB-Atos commentedon Sep 24, 2019
Hi,
that would not why it works with the same configuration on a non Microsoft Account.
Anyway, I did a test having the switches you mentioned.
The result is as expected.
The server requests authentication by LFS-Authenticate: NTLM
The client sends the request with a www-Authenticate header
Www-Authenticate: NTLM TlRM*****So NTLM is used as expected.
Regards,
Matthias
bk2204 commentedon Sep 24, 2019
I'm really not sure why this is occurring. This message is from the remote server when performing a batch request, so for some reason the server is (presumably) complaining about your credentials.
None of the maintainers use NTLM with Git LFS, so while we're happy to accept patches for NTLM-related issues, we aren't really able to troubleshoot them. I'd suggest trying a different authentication mechanism or reaching out to your Git server admin for assistance.
MB-Atos commentedon Sep 25, 2019
Probably it is complaining, because it is not correct. ;) I do know the different authentication mechanisms and how they work. The question is, why are the correct credentials used, with a local or domain windows account, wheres it is not on an MS Account. Maybe, I'll track that down in code on my own - but that might take a while.
bk2204 commentedon Oct 25, 2019
I have a guess about what might be the problem here. Can you build #3881 and see if that works for you when pushing?
arashmhashemi commentedon Nov 5, 2019
@bk2204 @MatBenAtos, I have the same problem (signed in with Microsoft account on win 10)
Downgraded to git-lfs/2.7.2, it prompted for user/password twice and worked fine after.
bk2204 commentedon Nov 5, 2019
As mentioned in #3881, we'll need someone who can build and test with NTLM to troubleshoot this problem. None of the core team members use NTLM, so without someone willing to fix this, it will remain as it is.
MB-Atos commentedon Nov 6, 2019
I'll give it a try; but will probably need till the weekend. Will come back with results asap.
MovGP0 commentedon Jun 1, 2021
When using user

FOO\useron an non domain joined machine and wanting to access an resource with userBAR\user, GIT LFS is supposed to use the credentials in the Windows Credential manager. GIT properly uses those, but GIT LFS seems to ignore them.bk2204 commentedon Jun 1, 2021
NTLM is going to be removed in the next release (as outlined in #4247), which is likely to happen June (this month) or July. So there will be no further fixes forthcoming here, and as a result I'm going to close this issue.
ganegaar commentedon Nov 15, 2022
I got the error in git-lfs. I found the issue to be because of Windows Hello login. When I disabled the Windows Hello, and used password to login to domain account when I login to my computer, the issue got resolved. More details about why this happens is here:
https://katystech.blog/azure/azure-ad-and-windows-hello-sso-to-on-premise-resources