title: Retrieving every Active Directory attribute using PHP
body: <p>In PHP, I'm building a function that adds a user into our Active Directory.  I want to compare one the entries we have in the Active Directory already, so I can figure out what info I need to include in the addUser function.</p>
  
  <p>I've tried:</p>
  
  <pre><code>$results = ldap_search($ad, $adDN, $filter, $attr);
  $entries = ldap_get_entries($ad, $results);
  print_r($entries);
  </code></pre>
  
  <p><code>$filter</code> is a username and <code>$attr</code> is empty, but it only returns the user's DN (Distinguished Name), and that's it. If I start adding things to <code>$attr</code> it will return those things added.  </p>
  
  <p>How can I just return every attribute?</p>