in reply to User group membership: bug in code

Your code runs fine for me.

Are you using an ID that has authority to access the DC?. Do you have the mods installed right? Do you have a NT setup or AD? Just some random ideas.

Where does the error appear?

Replies are listed 'Best First'.
Re: Re: User group membership: bug in code
by blackadder (Hermit) on Jun 28, 2002 at 07:50 UTC
    Many thanks for your reply,..the @GlobalGroups doesn't get populated?? I was informed that I am a domain admin and i can map a drive to the $admin share on the PDC.
      I take all the above back,...it worked. But only if I pass the domain name manually. $domain returned by Win32::DomainName is not correct (it is a valid domain) but its not the master domain. Which brings me to the next question, how can obtain a list of available domains and how can I tell which is the master domain. Many thanks once again.

        Actually DomainName is doing what you told it to do so it is correct.

        As to a call to tell you what is the master domain of a series of domains. I don't think that exists. As AD comes into play you might see something down the road.

        Besides what is wrong with feeding your script the master domain or the PDC of the masterdomain? Remeber the PDC is what the function call needs.