It could help you too look into this query I perform when I want to know whether a user has the rights of a group


(&
(memberOf:1.2.840.113556.1.4.1941:=CN=group_id,OU=groups,DC=my,DC=lan)
...