![]() |
![]()
| ![]() |
![]()
NAMENet::Radius::Dictionary - RADIUS dictionary parser SYNOPSISuse Net::Radius::Dictionary; my $dict = new Net::Radius::Dictionary "/etc/radius/dictionary"; $dict->readfile("/some/other/file"); my $num = $dict->attr_num('User-Name'); my $name = $dict->attr_name(1); my $vsa_num = $dict->vsattr_num(9, 'cisco-avpair'); my $vsa_name = $dict->vsattr_name(9, 1); DESCRIPTIONThis is a simple module that reads a RADIUS dictionary file and parses it, allowing conversion between dictionary names and numbers. Vendor-Specific attributes are supported in a way consistent to the standards. A few earlier versions of this module attempted to make dictionaries case-insensitive. This proved to be a very bad decision. From this version on, this tendency is reverted: Dictionaries and its contents are to be case-sensitive to prevent random, hard to debug failures in production code. METHODS
There is an equivalent family of accessor methods for Vendor-Specific attributes and its values. Those methods are identical to their standard attributes counterparts with two exceptions. Their names have a vsa prepended to the accessor name and the first argument to each one is the vendor code on which they apply. CAVEATSThis module is mostly for the internal use of Net::Radius::Packet, and may otherwise cause insanity and/or blindness if studied. AUTHORChristopher Masto <chris@netmonger.net>, Luis E. Muñoz <luismunoz@cpan.org> contributed the VSA code. SEE ALSONet::Radius::Packet POD ERRORSHey! The above document had some coding errors, which are explained below:
|