I have been unable to look up either Accounts or sids in my Active
Directory. When I use the following code to lookup an account:
$server = "dc012";
$user = "joeg";
Win32::LookupAccountName($server, $user,
$domain,
$sid,
$sidtype
);
$sid returns some unreadable binary number. Do I need to change the type or
do something to it?
When I try the following code to use to lookup a SID, I get the error, "the
security ID structure is invalid":
$server = "dc012";
$sid = "S-1-5-21-2132039509-75768842-126092852-2465";
Win32::LookupAccountSID($server,$sid,
$username,
$domain,
$sidtype
);
Can anyone help? Thanks.
-Ken Foster
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs