Finding Trusted Domain Names
Posted on 1997-05-09
I am sitting on a workstation called W. W is part of a
domain called D. The PDC of this domain is P. P trusts
another domain called T. Likewise, T trusts P.
Using the NetWkstaGetInfo, NetServerEnum, and NetUserEnum
calls, I can get the users on the W and on P.
How do I get the users (and thus global groups) on the
trusted domain(s), like T? How do I find out what domains
are trusted by P, and thus, the ones I want to get the
users and groups from.
The 3.51 File Manager does this in its Permissions tab
by letting you assign ACEs to a file based on SIDs from
the local system, the pdc, and any trusted domains. I
just don't see a call to get a list of trusted domains
for a PDC.