RADIUS::PacketRADIUS::Packet is an object-oriented Perl interface to RADIUS packets. | |
Download |
RADIUS::Packet Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Christopher Masto
- Publisher web site:
- http://search.cpan.org/~chrmasto/RADIUS-1.0/RADIUS/Dictionary.pm
RADIUS::Packet Tags
RADIUS::Packet Description
RADIUS::Packet is an object-oriented Perl interface to RADIUS packets. RADIUS::Packet is an object-oriented Perl interface to RADIUS packets.SYNOPSIS use RADIUS::Packet; use RADIUS::Dictionary; my $d = new RADIUS::Dictionary "/etc/radius/dictionary"; my $p = new RADIUS::Packet $d, $data; $p->dump; if ($p->attr('User-Name' eq "lwall") { my $resp = new RADIUS::Packet $d; $resp->set_code('Access-Accept'); $resp->set_identifier($p->identifier); $resp->set_authenticator($p->authenticator); $resp->set_attr('Reply-Message') = "Welcome, Larry!rn"; my $respdat = auth_resp($resp->pack, "mysecret"); ...RADIUS (RFC2138) specifies a binary packet format which contains various values and attributes. RADIUS::Packet provides an interface to turn RADIUS packets into Perl data structures and vice-versa.RADIUS::Packet does not provide functions for obtaining RADIUS packets from the network. A simple network RADIUS server is provided as an example at the end of this document. Also, a RADIUS::Server module is under development which will simplify the interface. Requirements: · Perl
RADIUS::Packet Related Software