Authen-Simple-RADIUS
view release on metacpan or search on metacpan
lib/Authen/Simple/RADIUS.pm view on Meta::CPAN
optional => 0
}
});
sub check {
my ( $self, $username, $password ) = @_;
my $connection = Authen::Radius->new(
Host => sprintf( "%s:%d", $self->host, $self->port ),
Secret => $self->secret,
Timeout => $self->timeout
);
unless ( defined $connection ) {
my $host = $self->host;
$self->log->error( qq/Failed to connect to '$host'. Reason: '$@'/ )
if $self->log;
return 0;
( run in 0.307 second using v1.01-cache-2.11-cpan-4d50c553e7e )