Hello,
I am looking for a way to take a userid and password, and verify them
against the OS.
I have looked at Win32::NetAdmin's UserGetAttributes function; however, when
I read a valid userid's information, I get nothing back for the password
field.
The idea was to read the password, compare it to the one entered, then
validate appropriately. The more I think about this, the less likely the
user id's password would be presented in full text.
So, to cut to the chase, is there a resource kit tool or some exe that takes
a userid, password and possibly a domain name, and returns a one or zero? I
don't mind using a Perl PM either.
(I searched the Net for quite some time looking for a simple, command-line
authentication tool, but did not find anything. That is why I am now turning
to Perl.)
I am looking for something like
$retval = qx { CheckUser.exe $domain, $userid, $password};
if $retval == 1
{
print "domain:User id:password is valid";
}
Or equivalent Perl function call like
use this::that qw (CheckUser);
my ($domain, $userid, $password, $retval);
.
.
.
.
$retval = CheckUser ($domain, $userid, $password);
Much obliged.
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs