Nothing in the languages will do that for you, you will need to do your own
walking (i.e. recursion). BTW, be wary of people who do circular nesting...
Quote:> How do i determine the effective member list of a global
> group that only has global groups assigned. For example,
> has GlobalGroup2 as a member group
> has Tom
> has Mary
> I would like to call somthing that allows all the users
> of GlobalGroup1 to be returned, (ie get AD to walk the
> directory for me an return Tom and Mary.
> I was hoping the isMember would walk the directory as
> follows but no luck either.
> LPWSTR adsPath = L"WinNT://Sample/GlobalGroup1";
> hr = ADsGetObject(adsPath,IID_IADsGroup,(void**)&pGroup);
> VARIANT_BOOL inG=false;
> hr = pGroup->IsMember(L"WinNT://Sample/Tom", &inG);
> will return false since Tom is not a direct member,
> however he is indirectly.
> Thanks in advance.