Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trusted authentication does not work #1391

Open
tcartwright opened this issue Aug 3, 2021 · 12 comments
Open

Trusted authentication does not work #1391

tcartwright opened this issue Aug 3, 2021 · 12 comments

Comments

@tcartwright
Copy link
Contributor

You cannot use trusted authentication when connecting to an on premise TFS server. An exception occurs when attempting to connect without specifying username and password.

@AnthonyAtApex
Copy link

AnthonyAtApex commented Sep 14, 2021

This might be related. I can't authenticate to a local on-premise DevOps Server 2020.1. Running the exe gives me the following errors:

TF31002: Unable to connect to this Azure DevOps Server: https://devops.fubar.com/TFSSoftware/Analytics.
Azure DevOps Server Url: https://devops.fubar.com/TFSSoftware/Analytics.

Possible reasons for failure include:

  • The name, port number, or protocol for the Azure DevOps Server is incorrect.
  • The Azure DevOps Server is offline.
  • The password has expired or is incorrect.

Technical information (for administrator):
The remote server returned an error: (404) Not Found.
The remote server returned an error: (404) Not Found.

I'm using the following command line:

git-tfs clone --branches=all https://devops.fubar.com/TFSSoftware/Analytics $/Main .\GITProject --username=[domain]\[account]

I'm prompted for password, but it doesn't login.

I'm concerned about the two 404 errors message. Not sure why the server would respond that way unless the exe is hitting the incorrect end points. Since this is an on-premise DevOps Server, should I be using a different Team Library? Right now I have 2019.

@siprbaum
Copy link
Member

Was the clone command run in git-bash or in cmd?
Can you post the traces, too? They are in C:\Users\<YOUR_USERNAME>\AppData\Local\git-tfs\git-tfs_log.txt

@AnthonyAtApex
Copy link

@siprbaum

cmd (Windows 10)

git-tfs_log - Copy.txt

@siprbaum
Copy link
Member

siprbaum commented Sep 15, 2021

Editied to fix the command

Could it be the same as in #1319 (comment) ?
E.g. what if you try

git-tfs list-remote-branches https://devops.fubar.com/TFSSoftware --username=[domain]\[account]

instead, e.g. with the /Analytics part removed from the server URL?

@AnthonyAtApex
Copy link

git-tfs -d list-remote-branches https://devops.fubar.com/TFSSoftware/Analytics --username=AnthonyAtApex

git-tfs_log.txt

@siprbaum
Copy link
Member

That is more or less the same error, you didn't try to remove the '/Analytics' part in the URL.

Try this:
git-tfs -d list-remote-branches https://devops.fubar.com/TFSSoftware --username=AnthonyAtApex

and then post the traces again

@siprbaum
Copy link
Member

Exactly, here I only need to pass the Team Project Collection in the URL.
The Project is passed via $/Project/...and then the usual rest .., but not relevant for the list-remote-branches case

Have you tried it?

@AnthonyAtApex
Copy link

AnthonyAtApex commented Sep 15, 2021

Ok - I get it. Yes - it showed a metric tonne of our olde TFS respositories, and of course not the one I want. But I can see in the browser, it's there:

image

So now I have to figure out how to convert it so that tfs-git can find it.

@siprbaum
Copy link
Member

Ok, at least we know that the URL https://devops.fubar.com/TFSSoftware is the correct one.
Your screenshot didn't show any branches, just folders. Which might explain why list-remote-branches wont show it to you.

Perhaps try something like this, e.g. without branches

git-tfs clone --branches=none https://devops.fubar.com/TFSSoftware $/AnalyticsTFS   .\GITProject --username=[domain]\[account]

@AnthonyAtApex
Copy link

Ok - the key seems to be I was assuming that I needed the Project name in the URL.

Thanks for all the help!

@Nerea90
Copy link

Nerea90 commented Oct 3, 2021

You cannot use trusted authentication when connecting to an on premise TFS server. An exception occurs when attempting to connect without specifying username and password.

@Jtaction
Copy link

I know this isn't really work on my phone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants