File: check_pwd.t

package info (click to toggle)
libauthen-radius-perl 0.33-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 460 kB
  • sloc: perl: 1,057; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
use strict;
use warnings;
use Test::More tests => 3;

BEGIN { use_ok('Authen::Radius') };

my $r = Authen::Radius->new(Host => '127.0.0.1', Secret => 'secret');
ok($r, 'object created');

my $check = $r->check_pwd('test', 'test');
ok(! $check, 'no RADIUS available - check failed');