Adding users to Team Foundation Server from different domain (LDAP) - tfs

I set up a TFS (Team Foundation Server 2015) on a Machine using only local users, but now want to authenticate/add users on the TFS using our corporate AD logins.
We are not allowed to put the TFS into the AD domain itself, as our policy forbids us to do so, the server is not administered by our CIT administrators. On the other hand, we are allowed to use LDAP to authenticate, but I have no idea how or where to configure this.
How can we configure our TFS to authenticate users using an LDAP?

TFS has to be installed in a domain if you want to authenticate domain users.

Managing Team Foundation Server in a workgroup environment is possible but can present some challenges. Active Directory environments are recommended for most Team Foundation Server deployments. If Team Foundation Server is to be deployed in a workgroup, it should only be deployed in workgroups with a very limited number of users and computers. In your case AD is required in TFS setup. In TFS setup as well as configuration, we need a few account, like TFS service account, build account, reporting account.
When connect to TFS from client computers, we need AD user account to authenticate, only domain user can connect to TFS. What you are looking for is not supported and can't be achieved for now.

Related

Access denied connecting to TFS Server

I am connecting to TFS server using terminal on my MacBook according to the website: https://learn.microsoft.com/en-us/visualstudio/mac/tf-version-control?view=vsmac-2019. Yes i have created the workspace successfully but when I try to map it to local folder, it always shows error about access denied even though my credentials is absolutely correct, I am using personal access token as username and leave empty for the password.
The error is:
Access denied connecting to TFS server https://dev.azure.com/myworkbaseasolutemobile/VersionControl/v4.0/repository.asmx (authenticating as f). After that, it prompt me to enter the username and password, once I type in, terminal do nothing but give me new line to enter the new command. When I entered the tf workfold command again, the error comes out again.
I don't even know where is the 'f' comes from. I don't know where is the problem. Anyone can help me on this?
Personal access tokens (PATs) are alternate passwords that you can use to authenticate into Azure DevOps.
Azure DevOps uses enterprise-grade authentication to help protect and secure your data. Clients like Visual Studio and Eclipse (with the Team Explorer Everywhere plug-in) also support Microsoft account and Azure AD authentication. Since PATs are an alternate form of user authentication, using a PAT gives you the same access level. If you create a PAT with a narrower scope, your access is limited to that scope.
Please leave the username empty and use PAT as password to access your TFS server.
Besides, , since you are using PAT with on-premise TFS server, check if you already turned off Basic Authentication.
We recommend you keep IIS Basic Authentication turned off at all times
when using Azure DevOps Server. Only if necessary should you enable
IIS Basic Authentication. When IIS Basic Authentication is enabled on
your windows machine, it prevents you from using personal access
tokens (PATs) as an authentication mechanism.
More details please take a look at this official link.

Windows Authentication on Azure

I am building a .net mvc web app on Azure. Currently my client asked for login to the application with their user accounts which they login to the windows.
I've searched couple of solutions but none of them works for me.
Azure AD needs to synchronize accounts. We don't want this.
AD FS needs to be installed on the server as far as i know it's also sycnhronizing.
Is there any method to login on-premises active directory users to Azure App without ADFS stuff and any synchronizing process?
If I understood correctly, you were developing an web app and deploy it to Azure.
Is there any method to login on-premises active directory users to Azure App without ADFS stuff and any synchronizing process?
I don't thinks it is possible. Since the Azure and on-premises are two different environment.
A easy way is using the Azure AD connect which doesn't require to install the ADFS. And there is an Password synchronization option in its Express settings which will sync the account from on-premises to cloud with password. Then you can protect your web app with Azure AD and it enable the users to sign-in with the accounts synced from on-premises or which created in the cloud.

How does the EnsureAuthenticated in the TFS API Work?

I'm working on a web application that works with the TFS API and I would like to make sure that any users that use it have the proper authentication to use TFS.
To do so I use the following code:
TfsTeamProjectCollection teamProjectCollection = configServer.GetTeamProjectCollection(collectionId);
teamProjectCollection.EnsureAuthenticated;
I'm going to host the website on IIS.
When a user uses the web app, will EnsureAuthenticated use their credentials, or will it use the credentials of the remote desktop I'm hosting the application on?
It depends.
If you have configured ASP.NEt to use impersonation, it will use the account of the logged user.
If ASP.NET is configured with default settings there are a number of things that can happen
If there is a credential stored in the Credentials Manager it will use that
If the application pool is running under a real account it will try to do that
If the application pool is running an application pool account, it will probably try to authenticate with the System's account (COMPUTER$)
I'd say, try it and look at the IIS logs of your TFS server or use something like fiddler to capture the traffic.

Microsoft TFS cant access offline

I installed TFS 2013 on the server side with a "Basic Installation". I can access the TFS locally using the localhost URL it doesn't ask for a username and password.
But when I access the URL online then It prompts for a username and password.
How do I configure this on my server. I am new to TFS and cant find a proper explanation online.
In order to log into TFS you need credentials on the local machine. Create local accounts for all of your users and add them to TFS.
You would be better using VSO (TFS Online) as it authenticates with Live ID and is more secure and resilient.

Team System Web Access ADFS SSO

I am now working on TFS 2010. And it has a built-in website called Team System Web Access. The Team System Web Access should be integrated with ADFS for the purpose of SSO support. Can anybody help show some solutions? Thanks!
If you want to use single sign-on you can. As long as the connecting users end up with Active Directory credentials then they will be able to access TFS and the Web Access. This works for TFS 2005, 2008, 2010, 2012, and 2013.
As Ed says, as long as calls to the TFS Web Portal or TFS itself is with the context of an active directory authenticated account that has permission it will work. How you receive your AD token is however you want to configure it. Certificate, smart card, login, or ADFS, its all the same to Windows.

Resources