s4:torture/rpc/samr - enhance the "EnumDomainGroups" test regarding universal groups
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Wed, 3 Mar 2010 11:01:40 +0000 (12:01 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Wed, 3 Mar 2010 16:20:01 +0000 (17:20 +0100)
commit051eb0b575d715e5b7bbd03a201aa88167ccee4f
treec8abc1c24e7a6ebb7ae75dab505b0c318f2615ad
parent8d0fbfe987f4cefda872bb7a9caca0d9a77bf258
s4:torture/rpc/samr - enhance the "EnumDomainGroups" test regarding universal groups

Find the "Enterprise Admins" group which does exist on s4 and Windows
directories and is always per default universal. Test this only when the target
is set to s4 (s3 deployments don't contain this group). If the number of
returned objects is "0" (count) then we are likely testing the builtin domain of
an AD deployment.Then we ignore the inexistent "Enterprise Admins" group.

I didn't enhance the test for "QueryDomainInfo" since this does itself a
comparison of all returned objects with the "EnumDomainGroups" call. Therefore
if the latter passes, and the "QueryDomainInfo" test passes also the
"QueryDomainInfo" call is okay regarding groups.
source4/torture/rpc/samr.c