how can I enumerate all Active Directory groups a user is member of? I can enumerate all groups a user is directly placed in, but not nested groups.
user 1 is member of group finance and group HR
user 2 is member of group reception
user 3 is member of group ICT
group Administration has 3 member-groups: Finance, HR & reception
group Domain Admins has 1 member group: ICT
if I enumerate the groups of user 1 (with the memberof attribute), it will return Finance and HR, but NOT Administration. (& dito for user3: it will return ICT but NOT Domain Admins)
I'm using the PEAR LDAP-functions (http://de.tikiwiki.org/xref-BRANCH-1-9/ ... ource.html
& I'd like the extend it with a function "getGroups($user)" wich returns all groups $user is a member of (duh ;o)
If anyone can explain me how I get the checkGroup($user) function to work: I'd be gratefull too.
PS: I do not have PEAR installed, I'm only using the LDAP.php functions