How do I list the LDAP groups that a user belongs to?

How do I list the LDAP groups that a user belongs to?

Date Entered: 09/26/2007    Last Updated: 09/26/2007

In your search filter, specify the member name and the group objectClasses. For example:
ldap.Search("(&(|(uniqueMember=CN=My Name,CN=Users,DC=DOMAIN)
  (member=CN=My Name,CN=Users,DC=JUNGLE))(|(|(|
  (objectClass=posixGroup)(objectClass=groupOfUniqueNames))
  (objectClass=groupOfNames))(objectClass=group)))");

We appreciate your feedback.  If you have any questions, comments, or suggestions about this entry please contact our support team at kb@nsoftware.com.