title: Cannot list all LDAP attributes using C#
body: <p>I am trying to get a list of all attributes for a given LDAP entry, with the following code:</p>
  
  <pre><code>LdapConnection conn = GetOpenLdapConnection();
  
  string filter = "(uid=" + user + ")";
  SearchRequest search = new SearchRequest(LDAP_BASE, filter, SearchScope.Subtree, "*");
  SearchResponse resp = conn.SendRequest(search) as SearchResponse;
  
  SearchResultEntry entry = resp.Entries[0];
  Console.WriteLine(entry.DistinguishedName);
  foreach (string attr in entry.Attributes.AttributeNames)
      Console.WriteLine("Name:" + attr);
  
  conn.Dispose();
  </code></pre>
  
  <p>However, this only prints one attribute name: "uid".  I'm confused as to why this is not returning all of the attributes that I can clearly see using an LDAP browser (browsing the same entry for the given <code>user</code> as the code is attempting to retrieve).</p>
  
  <p>Honestly, I don't care to see all the attributes; I know the names of the ones I want to retrieve, but even if I replace <code>new SearchRequest(..., "*")</code> with <code>new SearchRequest(..., "attr1", "attr2", "etc.")</code>, the only one I can seem to retrieve is <code>"uid"</code>.  Is there something obvious here I am missing?</p>