Usng directory searcher to access AD in c# RRS feed

  • Question


    Hey there, im sorry if this thread isnt in the right place but i wasnt sure where to put it.


    Basically im using a Director searcher to search through a domian to retrieve informatio from Active Directory.  I declared the searchroot of the directory searcher mySearcher as follows


    mySearcher.SearchRoot = new DirectoryEntry ("");


    From what ive been told, this means that it searches within the local domain, however, i want to search every domain.  A friend said to put "GC:\\" in the brackets, but itthrows me an error.  I pressume he thought this would make me search int he global catalogue.  So how can i set it to search through all domains?



    Thursday, August 30, 2007 12:57 PM


All replies