TFSSecurity Unable to Resolve Identity

2019-08-17 07:32发布

I am trying to use TFSSecurity to configure security on our new instance of TFS 2017. It works great when I test it by adding local user accounts on the TFS server into a TFS group but fails as soon as I change to trying to add domain groups or accounts. Here's the command and the results I am getting:

PS C:> &"E:\TFS 2017\Tools\tfssecurity.exe" /g+ "n:[Project1]\Contributors" n:"DOMAIN1\TFS-Developers" /collection:http://myTfsServer:8080/tfs/PrimaryCollection

Microsoft (R) TFSSecurity - Team Foundation Server Security Tool Copyright (c) Microsoft Corporation. All rights reserved.

The target Team Foundation Server is http://myTfsServer:8080/tfs/PrimaryCollection.

Resolving identity "n:[Project1]\Contributors"...
[A] [Project1]\Contributors

Resolving identity "n:DOMAIN1\TFS-Developers"...

Error: The identity cannot be resolved.

I am running this command using an account on DOMAIN1 that can see the group in Active Directory Users and Computer so it seems like it should not have an issue resolving the identity. However, the server is not joined to the network on DOMAIN1. It is joined to a second domain called DOMAIN2 that has a one way trust with DOMAIN1. I suspect that this might be causing the problem but I'm not sure how to work around it if it is or how to diagnose the issue to know this for sure. Any ideas?

2条回答
该账号已被封号
2楼-- · 2019-08-17 08:19

This turned out not to be a domain trust issue at all. I was using the wrong group names. Very embarrassing but a good reminder to check for the stupid stuff before you assume it's something complicated.

查看更多
Summer. ? 凉城
3楼-- · 2019-08-17 08:32

You'd better make the 2 domains trusted with each other. Specifically, when you do only a one way trust. In you scenario, domain2 needs to trust domain1 and pay attension to that mentioned in this thread:

the TFSSERVICE account must normally be a user in the more truested forest. Since accounts from the less trusted forest are not allowed to query this information from the more truested forest, you are unable to add users from the more trusted forest when the TFSSERVICE account comes from the less trusted forest.

Here is a blog that about add user from different domain: http://blogs.agorainc.com/post/External-User-in-Team-Foundation-Server-(TFS)-with-Active-Directory.aspx

查看更多
登录 后发表回答