in reply to Enumerating Trusted NT Domains

I'm not sure if this module (Win32::LanMan)can help you, but maybe check it yourselfe. There a things like
TrustedControllersInformation TrustedDomainAuthInformation TrustedDomainFullInformation TrustedDomainInformationBasic TrustedDomainInformationEx TrustedDomainNameInformation TrustedPasswordInformation TrustedPosixOffsetInformation
in the Win32::LanMan pod.
----------------------------------- --the good, the bad and the physi-- -----------------------------------

Replies are listed 'Best First'.
Re: Re: Enumerating Trusted NT Domains
by LD2 (Curate) on Jul 31, 2001 at 19:11 UTC
    You're correct physi! There is actually a function named NetEnumerateTrustedDomains from Win32::LanMan that should do the trick. From documentation:
    NetEnumerateTrustedDomains($server, \@domains) Enumerates all trusted domain names. The command will be executed on s +erver $server.

    Update: I guess rchiav found this function abut the same time as I did :)
Re: Re: Enumerating Trusted NT Domains
by rchiav (Deacon) on Jul 31, 2001 at 19:12 UTC
    Thanks.. this actually has the functions I'm looking for.
    LsaEnumerateTrustedDomains($server, \@domains) Enumerates all trusted domains. If you execute this on a workstation o +r a member server, you'll get your domain and the domain sid. If you +execute this on a PDC or BDC, you'll get a list of all trusted domain +s and their sid's.
    Anyone know why this module isn't on CPAN?

    Thanks again..
    Rich