为什么我无法在 Team Foundation Server 中更改此帐户的标识? [英] Why can't I change the identity of this account in Team Foundation Server?

查看:19
本文介绍了为什么我无法在 Team Foundation Server 中更改此帐户的标识?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将集合从一台 Team Foundation Server 迁移到另一台.

使用本地帐户成员身份的集合无法连接到新服务器.其他集合使用域帐户并且可以毫无问题地附加.

因此,我使用 tfsconfig identities

识别了帐户

然后,我尝试使用以下命令更改身份:

tfsconfig 身份/change/fromdomain:MACHINE_NAME/todomain:DOMAIN_NAME/account:LOCAL_ACCOUNT_NAME/toaccount:DOMAIN_ACCOUNT_NAME

但是,操作失败并出现以下错误:

<块引用>

Account Name Exists(见注 1)匹配(见注 2)DOMAIN_NAME\DOMAIN_ACCOUNT_NAME 真假

在 Team Foundation Server 中更改了 0 个安全标识符 (SID).

(1) Exists 列表示列出的帐户是否存在于视窗.对于命令的列表模式,这是存储的帐户在 Team Foundation Server 中.对于 Change 模式,它是变化.

(2) Matches 列指示存储在 Team 中的 SIDFoundation Server 与 Windows 匹配.

当我运行 tfsconfig identities 时,我可以看到两者:

MACHINE_NAME\LOCAL_ACCOUNT_NAME True TrueDOMAIN_NAME\DOMAIN_ACCOUNT_NAME 真 真

那么,为什么它仍然失败?有什么想法吗?

解决方案

如果 DOMAIN\user 已存在于您的 TFS 实例中,则无法将 LOCAL\user 更改为 DOMAIN\user.

您实际上遇到了已经存在"的问题.一旦您处于这种情况,就无法解决此问题,因为有大量资产与这两个身份相关联.

正确的步骤是遵循将 TFS 迁移到新环境"文档并先进行域迁移.然后移动你的收藏.

如果您可以在导入之前返回收藏集的备份,则可以解决该问题.如果没有……你不能.

I'm trying to migrate the collections from one Team Foundation Server to another.

A collection that uses local account memberships fails to get attached to the new server. The other collections use domain accounts and get attached without any problem.

So, I identified the accounts with tfsconfig identities

Then, I attempted to change the identities by using the following command:

tfsconfig identities /change /fromdomain:MACHINE_NAME /todomain:DOMAIN_NAME
 /account:LOCAL_ACCOUNT_NAME /toaccount:DOMAIN_ACCOUNT_NAME

But, the operation fails with the following error:

Account Name                      Exists (see note 1)  Matches (see note 2) 
DOMAIN_NAME\DOMAIN_ACCOUNT_NAME   True                 False

0 security identifier(s) (SIDs) were changed in Team Foundation Server.

(1) The Exists column indicates whether the listed account exists in Windows. For the List mode of the command, this is the account stored in Team Foundation Server. For the Change mode, it is the target of the change.

(2) The Matches column indicates whether the SID stored in Team Foundation Server matches with Windows.

When I run tfsconfig identities, I can see both:

MACHINE_NAME\LOCAL_ACCOUNT_NAME       True                 True
DOMAIN_NAME\DOMAIN_ACCOUNT_NAME       True                 True

So, why is it still failing? Any ideas?

解决方案

The LOCAL\user can't be changed to DOMAIN\user if DOMAIN\user already exists in your TFS instance.

You are effectively getting an "already exists" issue. There is no way to resolve this once you are in this situation as there are a bunch of assets associated with both identity's.

The correct procedure is to follow the "migrating TFS to a new environment" documentation and do a domain migration first. Then move your collection over.

If you can go back to a backup of your collection before you imported it you can resolve it. If not...you can't.

这篇关于为什么我无法在 Team Foundation Server 中更改此帐户的标识?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆