I'm having some weird problems using InGroup().It can't find if the user is the member of a global group but will find if they are a member of a local group. I've even tried using EnumGroup to list out all the groups it finds. The only thing that gets listed are the domain local groups.
I've checked the rpc service and all the binaries and everything is ok there. The weird thing is, that the @PRIMARYGROUP call work fine, which is a global group.
So what's am I doing that's wrong? I've posted a snippet of script I threw together to verify this problem.
BTW - I'm using Kix2001 RC1
---------------------------------------
$PriGroup = @primarygroup
$GT = "MIS Group"
$IG = ingroup($GT)
$ER = @error
? "Primary Group is "+$PriGroup
$Message = "Group = $IG and error = $ER and RPC = @rserver"
? $Message
$Index = 0
Do
$Group = EnumGroup ($Index)
? $group
$Index = $Index + 1
Until LEN($Group) = 0
exit
[ 10 August 2001: Message edited by: Ted ]