List the domain name

Hello,

I wanted to list the domain names from the forest b4 i authenticate myself to the active directory...is it possible to do so...if not...after hardcoded the path, admin user name and password and create the active directoryentry and then how can i get the list of domain name for that entry...can you please give me the peice of code for that some some hints...

thank you
Thaya

[466 byte] By [Thaya] at [2007-12-22]