note
boo_radley
When I had to do this, I did it with [http://search.cpan.org/~prefect/Win32-AD-User-0.04/User.pm|Win32::AD::User].
<code>
$user=Win32::AD::User->new("WinNT://DOMAIN/username,user","username");
$user->get_info();
print join "\n",$user->get_groups();
</code>
if $user's undef, there's no account there.
411282
411282