Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Wed, 2 Apr 2008 14:06:02 -0700,    group: microsoft.public.dotnet.security        back       


How do I locate an object using its sid in a multi-forests environ   
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.
date: Wed, 2 Apr 2008 14:06:02 -0700   author:   Pucca

RE: How do I locate an object using its sid in a multi-forests environ   
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.
date: Wed, 2 Apr 2008 18:58:01 -0700   author:   Pucca

Re: How do I locate an object using its sid in a multi-forests environ   
Are you sure the trust isn't a domain trust instead of a forest trust?  Try 
the same code on your domains in your forest to see if the trust shows up 
there.

Joe K.
-- 
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Pucca"  wrote in message 
news:6B319CE5-D40C-454A-BC34-E71F3E3A4874@microsoft.com...
>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.
date: Fri, 4 Apr 2008 12:39:19 -0500   author:   Joe Kaplan

Re: How do I locate an object using its sid in a multi-forests env   
Hi Joe, 
Thank you.  That's exactly what I have, domain trusts.  
-- 
Thanks.


"Joe Kaplan" wrote:

> Are you sure the trust isn't a domain trust instead of a forest trust?  Try 
> the same code on your domains in your forest to see if the trust shows up 
> there.
> 
> Joe K.
> -- 
> Joe Kaplan-MS MVP Directory Services Programming
> Co-author of "The .NET Developer's Guide to Directory Services Programming"
> http://www.directoryprogramming.net
> --
> "Pucca"  wrote in message 
> news:6B319CE5-D40C-454A-BC34-E71F3E3A4874@microsoft.com...
> >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. 
> 
> 
>
date: Fri, 4 Apr 2008 12:51:01 -0700   author:   Pucca

Re: How do I locate an object using its sid in a multi-forests env   
If I have a external forest trust for my current forest, would I get all the 
domains ,including those domains, in the external forest if I use the 
domains.GetAllTrustRelationships();

-- 
Thanks.


"Joe Kaplan" wrote:

> Are you sure the trust isn't a domain trust instead of a forest trust?  Try 
> the same code on your domains in your forest to see if the trust shows up 
> there.
> 
> Joe K.
> -- 
> Joe Kaplan-MS MVP Directory Services Programming
> Co-author of "The .NET Developer's Guide to Directory Services Programming"
> http://www.directoryprogramming.net
> --
> "Pucca"  wrote in message 
> news:6B319CE5-D40C-454A-BC34-E71F3E3A4874@microsoft.com...
> >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. 
> 
> 
>
date: Fri, 4 Apr 2008 13:13:02 -0700   author:   Pucca

Re: How do I locate an object using its sid in a multi-forests env   
I don't know.  I don't have a forest trust environment handy to test with. 
:)

I'm pretty sure that if the trust is an actual forest trust, you'll just see 
the external forest trust show up at the forest level.  To enumerate the 
domains in the trusted forest, you would need to access it.

-- 
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Pucca"  wrote in message 
news:7F96E4FF-5036-419A-B3D4-D83E6B27D067@microsoft.com...
> If I have a external forest trust for my current forest, would I get all 
> the
> domains ,including those domains, in the external forest if I use the
> domains.GetAllTrustRelationships();
>
> -- 
> Thanks.
>
>
> "Joe Kaplan" wrote:
>
>> Are you sure the trust isn't a domain trust instead of a forest trust? 
>> Try
>> the same code on your domains in your forest to see if the trust shows up
>> there.
>>
>> Joe K.
>> -- 
>> Joe Kaplan-MS MVP Directory Services Programming
>> Co-author of "The .NET Developer's Guide to Directory Services 
>> Programming"
>> http://www.directoryprogramming.net
>> --
>> "Pucca"  wrote in message
>> news:6B319CE5-D40C-454A-BC34-E71F3E3A4874@microsoft.com...
>> >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.
>>
>>
>>
date: Fri, 4 Apr 2008 16:24:34 -0500   author:   Joe Kaplan

Re: How do I locate an object using its sid in a multi-forests env   
Ok, got it.  I will try it out.  thank you.
-- 
Thanks.


"Joe Kaplan" wrote:

> I don't know.  I don't have a forest trust environment handy to test with. 
> :)
> 
> I'm pretty sure that if the trust is an actual forest trust, you'll just see 
> the external forest trust show up at the forest level.  To enumerate the 
> domains in the trusted forest, you would need to access it.
> 
> -- 
> Joe Kaplan-MS MVP Directory Services Programming
> Co-author of "The .NET Developer's Guide to Directory Services Programming"
> http://www.directoryprogramming.net
> --
> "Pucca"  wrote in message 
> news:7F96E4FF-5036-419A-B3D4-D83E6B27D067@microsoft.com...
> > If I have a external forest trust for my current forest, would I get all 
> > the
> > domains ,including those domains, in the external forest if I use the
> > domains.GetAllTrustRelationships();
> >
> > -- 
> > Thanks.
> >
> >
> > "Joe Kaplan" wrote:
> >
> >> Are you sure the trust isn't a domain trust instead of a forest trust? 
> >> Try
> >> the same code on your domains in your forest to see if the trust shows up
> >> there.
> >>
> >> Joe K.
> >> -- 
> >> Joe Kaplan-MS MVP Directory Services Programming
> >> Co-author of "The .NET Developer's Guide to Directory Services 
> >> Programming"
> >> http://www.directoryprogramming.net
> >> --
> >> "Pucca"  wrote in message
> >> news:6B319CE5-D40C-454A-BC34-E71F3E3A4874@microsoft.com...
> >> >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.
> >>
> >>
> >> 
> 
> 
>
date: Fri, 4 Apr 2008 15:47:00 -0700   author:   Pucca

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us