helmex has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I am trying to find a way to check if a user exists in specific Originization Unit. I cannot use a typical if statement on my list of users:
Because the program will die as soon as I reach a username that does not exists, because the bind fails. Any help or suggestions would be much appreciated
I am trying to find a way to check if a user exists in specific Originization Unit. I cannot use a typical if statement on my list of users:
$path='cn=username,ou=mybase_ou,dc=computer,dc=com'; if (my $objUser = Win32::OLE->GetObject("LDAP://" . $path)){ }
Because the program will die as soon as I reach a username that does not exists, because the bind fails. Any help or suggestions would be much appreciated
%^+^%
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: AD User Exist?
by boo_radley (Parson) on Nov 30, 2004 at 21:12 UTC | |
Re: AD User Exist?
by VSarkiss (Monsignor) on Nov 30, 2004 at 21:55 UTC | |
by Anonymous Monk on Dec 01, 2004 at 14:33 UTC | |
Re: AD User Exist?
by Stevie-O (Friar) on Dec 01, 2004 at 00:29 UTC | |
Re: AD User Exist?
by ekkis (Initiate) on Nov 30, 2004 at 21:09 UTC |
Back to
Seekers of Perl Wisdom