title: Search for subdirectory in a given directory in LDAP
body: <p>I would like to find the subdirectories for a given directory. so far my code looks like this..</p>
  
  <p>It does connect, but now I am not sure how to get the groups under the <code>MainGroup</code></p>
  
  <pre><code>DirectoryEntry _de = new DirectoryEntry("LDAP://xxx.com/DC=xxx,DC=org");
  
  DirectorySearcher ds = new DirectorySearcher(_de);
  
  ds.Filter = "(&amp;(objectClass=group)(CN=MainGroup)";
  
  ds.SearchScope = SearchScope.Subtree;           
  ds.PageSize = 1000;
  ds.SizeLimit = 0;
  
  foreach (SearchResult result in ds.FindAll())
  {
  }
  </code></pre>
  
  <p>Thanks for your time!</p>