in reply to Re: Using Win32::NetAdmin for passwords
in thread Using Win32::NetAdmin for passwords
sub Verify {
my ($server,$user) =@_;
my %info;
my %ainfo;
my %onfo;
$auser = "a" . "$empid";
$ouser = "o" . "$empid";
Win32::Lanman::NetUserGetInfo($server,$user,\%info);
Win32::Lanman::NetUserGetInfo($server,$auser,\%ainfo);
Win32::Lanman::NetUserGetInfo($server,$ouser,\%oinfo);
if ($info{'password'} eq $ainfo{'password'}) {
print "A account matches! $info{'password'} $ainfo{'password'}";
}
else {
print "A account doesn't match!";
}
if ($info{'password'} eq $oinfo{'password'}) {
print "O account matches!";
}
else {
print "O account doesn't match!";
}
}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Using Win32::NetAdmin for passwords
by enoch (Chaplain) on Jun 16, 2001 at 01:35 UTC |