25 ianuarie 2010 16:49Hi,
Is there a way to enter different credentials when connecting to the server? It keeps using the account that was entered and I would like to use a different one. This is a sandbox instnace, so it is not on the domain yet and we are using local Windows accounts.
25 ianuarie 2010 18:37The only way I can think of is to simply do a runas and run it as a different user. Because it's integrated authentication you're sort of stuck with it.
Having said that, you can also configure TFS to work with basic and digest authentication which would prompt you for credentials when connecting to TFS. The instructions on how to do it are partially contained here: http://msdn.microsoft.com/en-us/library/aa833874(VS.80).aspx. Having said that, it's a bit of work to do when runas is just simpler. Also, it will effect everyone connecting to TFS. It can't be changed at just the MTLM level as far as I know.
Jeff Levinson | Team System MVP
- Marcat ca răspuns de David R. Williamson MSFTMicrosoft Employee 27 ianuarie 2010 03:25
25 ianuarie 2010 19:19Thanks Jeff,
It does prompt me in MTLM to enter the account info. I would think that we are already using Basic authentication (i.e. local Windows accounts on the server). The link you provided is for TFS 2005, does this still apply for 2010? It doesn't really tell me how to set Basic authentication, however.
The problem is once entered, it was always connecting to the same account and I couldn't figure out how to make it prompt for a different account. (I am testing access for various people).
I worked around it by removing the first account from the Contributors group.
I am still having a problem accessing my instance (non-domain based) from a machine on a domain (but entering the local account info for the server). Maybe this is not possible.
Thanks again for your help.
25 ianuarie 2010 19:24
First, yes, you can use basic with TFS 2010 (I will have to dig up the link if they've put one out yet). One thing about being prompted for credentials is that it will ALWAYS prompt you if it can't connect with the logged on credentials. So that is one idea you may want to use - just don't have any of the user accounts in TFS and when it goes to connect it will always prompt you for a valid windows account. I don't recall where these credentials are cached and I'll have to do some investigating.
You should not have a problem accessing a non-domain TFS account from a domain as long as you provide the local credentials so I'm not sure what the problem is exactly (maybe provide the steps and I'll see if I can re-create it).
Jeff Levinson | Team System MVP
- Marcat ca răspuns de Ray Henry 4 februarie 2010 15:25
3 februarie 2010 16:04Hi Jeff,
Thanks for your help. We don't use TFS in production and have a team evaluating it. Here's our environment:
Server: VM on Windows Server 2008 R2 Hyper-V. The VM is running Windows Server 2008 R2. The VM is not on the domain.
- Windows 7 x86 VM (non-domain). Visual Studio b2 2010 Ultimate. [This configuration works]
- Windows 7 x86 boot to VHD (non-domain). Visual Studio 2010 b2 Ultimate. [This configuration works]
- XP Sp3 domain machine. Visual Studio 2010 b2 Ultimate. [This does not work]
The user can enter his local server credentials and connect to the Collection. The list of Projects is visible; when he attempts to connect to the Project, he gets: Automatic connection to the following team project failed: Sandbox. Click Refresh to display all currently available team projects, then connect to the project that you want to use.
4 februarie 2010 15:27This is resolved.
I had the user uninstall VS 2010 b2 and install the Test Elements edition.
He can now log into the TFS project with MTLM. I don't think the issue was VS vs VSTE, rather something funny with his initial installation.
Thanks for the help!