Net-Radius-Server
view release on metacpan or search on metacpan
is($m_pam->($hash), NRS_MATCH_FAIL, "Incomplete packet causes FAIL");
# Now we need to work with user-supplied input
sleep 1;
diag("\nFurther testing requires credentials to login to this box");
if ($ENV{NRS_INTERACTIVE} and prompt(q{Run this test? [y/n]: }, -yes))
{
sleep 1;
diag("\nWe need a username to test");
my $login = getpwuid($<);
my $user = prompt(qq{Username [$login]: }, -d => $login);
sleep 1;
diag("\nWe need the user's password to test authentication");
my $pass = prompt(qq{Password for $user: }, -e => '*');
# Create a working Access-Request packet and response
$p->set_attr("User-Name" => $user);
my $q = new Net::Radius::Packet $d;
( run in 0.251 second using v1.01-cache-2.11-cpan-8d75d55dd25 )