Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: AD User Exist?

by boo_radley (Parson)
on Nov 30, 2004 at 21:12 UTC ( [id://411291] : note . print w/replies, xml ) Need Help??

in reply to AD User Exist?

When I had to do this, I did it with Win32::AD::User.
$user=Win32::AD::User->new("WinNT://DOMAIN/username,user","username"); $user->get_info(); print join "\n",$user->get_groups();
if $user's undef, there's no account there.