in reply to Win32::NetAdmin
You may find that you need to specify a server for the UserGetAttributes() function. Try obtaining the PDC first and then do the operations.
sub get_PDC { #Usage: $pdc=get_PDC($domain); my $dom=shift or return undef; my $server; Win32::NetAdmin::GetDomainController("", $dom, $server); return $server; }
Then replace "" with $pdc in your userGetAttributes($pdc,...) call.
|
|---|