|
NAMENet::Radius::Server::Rule - Rules for Net::Radius::ServerSYNOPSISuse Net::Radius::Server::Rule; my $rule = new Net::Radius::Server::Rule({ match_methods => \@match_methods, set_methods => \@set_methods, }); # Deep within the bowels of a RADIUS server... my $ret = $rule->eval(\%info); ... DESCRIPTION"Net::Radius::Server::Rule" implements a simple mechanism to evaluate RADIUS request packets using match methods. After the match methods determine that the given rule applies to the request, the set methods can modify a response packet to be sent to the RADIUS client.Evaluation and application of the rule is done by the "->eval()" method. This is normally invoked within the server code. "\%info" is a hashref with the same structure described in "Net::Radius::Server". The following attributes are available for object creation or manipulation via accessors created with "Class::Accessor":
The return value of the "->eval()" method is defined by the last set method executed. "undef" is returned if the rule did not match. EXPORTNone by default.HISTORY$Log$ Revision 1.7 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.6 2006/12/14 15:52:25 lem Fix CVS tags SEE ALSOPerl(1), Class::Accessor(3), Net::Radius::Server(3).AUTHORLuis E. Muñoz, <luismunoz@cpan.org>COPYRIGHT AND LICENSECopyright (C) 2006 by Luis E. MuñozThis 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:
Visit the GSP FreeBSD Man Page Interface. |