I don't understand LDAP in depth, but I'm trying to fix an issue with a PHP application, and I figured that what I need is a query that will return both the groups in which a user is in, and the parent groups of those groups. So if the user is in group A, and group B is a parent group of A, then I need a query that will return both A and B. Is it possible? Does it even make sense? Of course I've searched and tried but I haven't found the answer yet. I know it has something to do with the matching rule "1.2.840.113556.1.4.1941", but I can't figure out how to construct the query.
Well you are right, it has some thing to do with that matching rule.
(member:1.2.840.113556.1.4.1941:=(CN=UserName,CN=Users,DC=YOURDOMAIN,DC=NET))
-jim