Board index   FAQ   Search  
Register  Login
Board index PHP PEAR and PECL

LDAP.php -> enumerate ALL groups a user is a member of.

Do you have questions regarding Pecl or Pear? ask here!

Moderators: macek, egami, gesf

LDAP.php -> enumerate ALL groups a user is a member of.

Postby walter81 » Sun Aug 07, 2005 10:30 pm

Hello

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.
Like this:
groups:
1)finance
2)reception
3)HR
4)direction
5)ICT
6)Administration
7)Domain Admins
users:
1)C.Walker
2)M.Smelly
3)S.Tupid Names

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
walter81
New php-forum User
New php-forum User
 
Posts: 2
Joined: Sun Aug 07, 2005 10:28 pm

Postby walter81 » Tue Aug 09, 2005 12:28 am

Right now i've firured it out so far: I need a function wich enumerates all groups a group belongs to. I'm sure it's possible, but I'm not quite comfortable in AD-query's....

thanx in advance
walter81
New php-forum User
New php-forum User
 
Posts: 2
Joined: Sun Aug 07, 2005 10:28 pm


Return to PEAR and PECL

Who is online

Users browsing this forum: No registered users and 0 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron