Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find all Domains in forest using ADSI WinNT provider..

Status
Not open for further replies.

joe131

Programmer
Oct 27, 2006
3
US
Hi All,

I'm trying to find out how to find all the Domains in
the forest using the WinNT Provider in ADSI, using C/C++.

I know using "GC" or "LDAP" would be easier, but I need
to use WinNT..

The only thing I can think of is to keep doing a get_Parent
until you hit a Container that has information saying that
it's the "forest root domain", and then do a search from
there down..

Trying to find any example source on doing anything
like this, using WinNT, is next to impossible to find.. :-\

Any links to sample C/C++ code or a code sample,
or suggestions would be great!

Thanks,

Joe S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top