title: LDAP - How to filter users with specific attributes
body: <p>We have an Active Directory but don't have direct access to the machine hosting this AD, so I'm using a Linux box to connect to it.</p>
  
  <p>We are able to successfully login using :</p>
  
  <pre><code>ldapsearch -x -h ldapmd.ad.test.com -p 3268 -D "cn=test\, test1,ou=users,ou=Australia,ou=asia,OU=Sites,DC=ad,DC=test,DC=com" -W -b "OU=Access-Groups,OU=OrgResources,DC=ad,DC=test,DC=com" 
  </code></pre>
  
  <p>Is there a filter that I could add to get all users with the following attributes : </p>
  
  <ul>
  <li>Common Name</li>
  <li>email</li>
  <li>sAMAccountName</li>
  <li>Country</li>
  </ul>