|
NAMENet::Radius::Server::Set::Replace - Perform replacements on the RADIUS response SYNOPSIS use Net::Radius::Server::Base qw/:set/;
use Net::Radius::Server::Set::Replace;
my $replace = Net::Radius::Server::Set::Replace->new
({
result => NRS_SET_RESPOND,
vsattr => [
[ 'Cisco', 'cisco-avpair' => qr/datum=foo/ => 'bad=baz' ],
],
attr => [
[ 'Reply-Message', qr/Login Succesful/ => "Welcome home!!!\r\n\r\n",
'Reply-Message', qr/Invalid/ => "Go away stranger\r\n\r\n",
],
]});
my $replace_sub = $set->mk;
DESCRIPTION"Net::Radius::Server::Set::Replace" provides a simple mechanism allowing changes to be made to RADIUS packets. See "Net::Radius::Server::Set" for general usage guidelines. The relevant attributes that control the matching of RADIUS requests are:
EXPORTNone by default. HISTORY$Log$ Revision 1.4 2006/12/14 16:33:17 lem Rules and methods will only report failures in log level 3 and above. Level 4 report success and failure, for deeper debugging Revision 1.3 2006/12/14 15:52:25 lem Fix CVS tags SEE ALSOPerl(1), NetAddr::IP(3), Net::Radius::Server(3), Net::Radius::Server::Set(3), Net::Radius::Packet(3). AUTHORLuis E. Muñoz, <luismunoz@cpan.org> COPYRIGHT AND LICENSECopyright (C) 2006 by Luis E. Muñoz This library is free software; you can redistribute it and/or modify it under the same terms as Perl 5.8.6 itself. POD ERRORSHey! The above document had some coding errors, which are explained below:
|