Re: How can I get all the root domains of a forest?
- From: "Joe Kaplan" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 21 Jan 2008 09:32:45 -0600
Did you look at the Parent property on the Domain object? That should
return the parent of any given domain or null if it has no parent, so that
should be another way you can rebuild the tree.
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" <Pucca@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F1292C28-30D7-4F31-A1D1-88CAEFC9D33F@xxxxxxxxxxxxxxxx
Hi Joe,
I'm not looking for a domain with a disjoint namespace. I'm trying to
re-create the domains browser that you would see in the AD user and
Computer
when you select to Connect To Domain and click the Browe button in that
dialog. Let say in this browsing dialog, you would see 2 domain nodes as
siblings on the same root leve. One can drill down on each of these 2
domain
nodes to see its children domains.
I need to retrieve these type of information from AD and build the same
domain trees in this browser. I've looked at the Forest and the Domain
classes and didn't find the attributes that I can use for finding the 2nd
domain tree. The forest.rootdomain returns only the rootdomain for one of
the domain tree. If I look at forest.domains it does return the
rootdomain
for the 2nd domain tree but I have no way of telling that it is a sibling
node of the 1st domain tree's rootdomain. Do you know how I can get the
information I need? Thank you.
--
Thanks.
"Joe Kaplan" wrote:
Are you talking about a domain with a disjoint namespace? I'm really not
sure how the API is supposed to behave here or what the rules are. I
think
you might need to esclate your question to Microsoft PSS.
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" <Pucca@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:380AE177-811F-4AA7-8AA7-3CA9E0208492@xxxxxxxxxxxxxxxx
I'm trying to contruct multiple domain trees in a forest. Each tree
would
have its own root domain. The Forest class returns the First created
domain
as the rootdomain and I use that to build just one of the domain treen.
When
there are more than one domain tree in the forest then how can I get
hold
of
the "frist domain" of the 2nd domain tree? Thank you.
--
Thanks.
"Joe Kaplan" wrote:
I think there is only supposed to be one root domain by definition.
Can
you
explain a situation where you think you have more than one?
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" <Pucca@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:10EEDFD8-358D-493E-BBBE-7D55D26515F1@xxxxxxxxxxxxxxxx
Hi, I'm using vs2005 and .net 2. I got the current forest and I
want
to
get
all the root domain of all domain trees in a forest. I use
forest.RootDomain.Name and got one of the root domain. But, how can
I
get
all the other root domains? Thank you.
--
Thanks.
.
- Follow-Ups:
- References:
- Re: How can I get all the root domains of a forest?
- From: Joe Kaplan
- Re: How can I get all the root domains of a forest?
- From: Joe Kaplan
- Re: How can I get all the root domains of a forest?
- From: Pucca
- Re: How can I get all the root domains of a forest?
- Prev by Date: Re: How can I get all the root domains of a forest?
- Next by Date: Re: How can I get all the root domains of a forest?
- Previous by thread: Re: How can I get all the root domains of a forest?
- Next by thread: Re: How can I get all the root domains of a forest?
- Index(es):