Files
webmin/record-failed.pl
2016-05-30 15:29:10 -07:00

18 lines
434 B
Perl
Executable File

#!/usr/local/bin/perl
# Write an actions log for a failed login
BEGIN { push(@INC, ".."); };
use strict;
use warnings;
use WebminCore;
&init_config();
our ($remote_user);
my ($username, $reason, $remoteip, $localip) = @ARGV;
if ($username && $reason && $remoteip) {
$WebminCore::remote_user = $remote_user = $username;
$0 = "miniserv.pl";
&webmin_log("failed", undef, $reason, undef, "global", undef,
undef, $remoteip);
}