title: How to write LDAP query to test if user is member of a group?
body: <p>I want to write an LDAP query which tests whether a user (sAMAccountName) is a member of a particular group. Is it possible to do that so that I get either 0 or 1 result records?</p>
  
  <p>I guess I can get all groups for the user and test each one for a match but I was wondering if I could pack it into one LDAP expression.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks</p>