Help for this page

Select Code to Download


  1. or download this
    #!D:/Perl/bin/perl.exe 
    use Win32::AuthenticateUser;
    @result = AuthenticateUser("domain", "smith", "abc123");
    print @result;
    
  2. or download this
    #!D:/Perl/bin/perl.exe -w
    use strict; #always.
    ...
    my $result = Win32::AuthenticateUser::AuthenticateUser(
                 "domain", "smith", "abc123");
    print $result ? 'Authentic User' : 'Unknown User or Password';