I'm well aware of using the 'memberOf' attribute for a user to determine what groups the user is *directly* a member of. But I want to consider "parents" of groups as well.
Consider the following. I have user "Fred", who is a member of "GroupB". So Fred's 'memberOf' will include GroupB and all is well so far.
Now, we have "GroupA", and one of *its* members is GroupB. So technically, Fred is a member of GroupA as well, just indirectly.
I'm coming at this from the angle that I have Fred's directory entry, and I have GroupA's directory entry. I want to know "Is Fred a member, directly or indirectly, of GroupA?".
Is there an easy way to get this? I know I can get Fred's 'memberOf', parse that for all groups, and then for each group call its 'memberOf' and keep recursing backwards until I finally exhaust *all* parents, but that seems a tad inefficient. I'm hoping there's a magic query construct that'll get me what I want.
Ideas?
Brad.
Consider the following. I have user "Fred", who is a member of "GroupB". So Fred's 'memberOf' will include GroupB and all is well so far.
Now, we have "GroupA", and one of *its* members is GroupB. So technically, Fred is a member of GroupA as well, just indirectly.
I'm coming at this from the angle that I have Fred's directory entry, and I have GroupA's directory entry. I want to know "Is Fred a member, directly or indirectly, of GroupA?".
Is there an easy way to get this? I know I can get Fred's 'memberOf', parse that for all groups, and then for each group call its 'memberOf' and keep recursing backwards until I finally exhaust *all* parents, but that seems a tad inefficient. I'm hoping there's a magic query construct that'll get me what I want.
Ideas?
Brad.