Question:
According to the docs we should be able to specify "OtherDomain\group" or "OtherServer\group" in the INGROUP function. Since the result is the same when running both NT and Win9x, it would appear the failure to determine membership of a local group is either API or INGROUP based. Can someone explain why specifing "OtherDomain\LocalGroup" fails returing a zero (0), but when specifying the "OtherDomainPDC\LocalGroup" the function works correctly?The event being logged (shown below) by the KXRPC service seems to verify that this function can not resolve a DC for the specified domain.
Does anyone know a fix that would allow one to specify "ResourceDomain\LocalGroup" and have INGROUP work?
Master domain architecture
--------------------------------
;Test Script
? "HomeDrive = @HomeDrive"
?
if InGroup("ResourceDomain\Account Operators")
? "Is a member of ResourceDomain\Account Operators"
else
? "ResourceDomain\Account Operators return code = "
InGroup("ResourceDomain\Account Operators")
endif
if InGroup("\\pipsqueak\Account Operators")
? "Is a member of Pipsqueak\Account Operators"
else
? "Pipsqueak\Account Operators return code = "
InGroup("\\Pipsqueak\Account Operators")
endif
if InGroup("MasterDomain\Administrators")
? "Is a member of MasterDomain\Administrators"
endif
--------------------------------
Results:
HomeDrive = H:
ResourceDomain\Account Operators return code = 0
Is a member of Pipsqueak\Account Operators
Is a member of MasterDomain\Administrators
===================================
The above result is the same on both NT and Win9x.
The following error is logged on the MasterDomain DC:
Runtime info : (Error : The specified domain did not exist. (0x54b/1355) GetLocalGroups : failed to find a domain controller for ResourceDomain)
The ResourceDomain PDC is \\Pipsqueak
Howard A Bullock
Tyco Electronics