RE: How do I locate an object using its sid in a multi-forests environ
- From: Pucca <Pucca@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 2 Apr 2008 18:58:01 -0700
I tried using the follow code to get the trusted relationship for my forest
but it returns 0 for trusts.Count. I do have external trust for my currect
forest. Why isn't it catching that information?
Thank you.
Forest forest;
forest = Forest.GetCurrentForest();
TrustRelationshipInformationCollection trusts =
forest.GetAllTrustRelationships();
for(int indx=0; indx<trusts.Count; indx++)
{
TrustRelationshipInformation trust = trusts[indx];
}
--
Thanks.
"Pucca" wrote:
Hi, I'm using vs2005, .net2 for a windows applicaiton. I need to bind to an.
AD object (user, group or computer) and I only have its sid. This object
could locate in a domain outside of my current forest, in a multi-forests
environment.
1. How can I find the path to this object?
2. How to find the domain name that this object is located.
3. If this object is not in current forest, then, how can I verify if the
forest/domain that this object is at has a valid external trust configured
with my current forest?
Any help in any of the above issue is greatly appreciated.
Thank you.
--
Thanks.
- Follow-Ups:
- References:
- Prev by Date: CasPol.exe fails to start and throws a security exception
- Next by Date: HttpListener, SSL Certificates, Sever and client certificate auth
- Previous by thread: How do I locate an object using its sid in a multi-forests environ
- Next by thread: Re: How do I locate an object using its sid in a multi-forests environ
- Index(es):