RADIUS::Dictionary

A RADIUS dictionary parser
Download

RADIUS::Dictionary Ranking & Summary

Advertisement

  • Rating:
  • 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::Dictionary Tags


RADIUS::Dictionary Description

A RADIUS dictionary parser RADIUS::Dictionary is a RADIUS dictionary parser.SYNOPSIS use RADIUS::Dictionary; my $dict = new RADIUS::Dictionary "/etc/radius/dictionary"; $dict->readdict("/some/other/file"); my $num = $dict->attr_num('User-Name'); my $name = $dict->attr_name(1);This is a simple module that reads a RADIUS dictionary file and parses it, allowing conversion between dictionary names and numbers.METHODSnewReturns a new instance of a RADIUS::Dictionary object. If given an (optional) filename, it calls readdict for you.->readdictParses a dictionary file and learns the namenumber mappings.->attr_num($attrname)Returns the number of the named attribute.->attr_type($attrname)Returns the type (string, integer, ipaddr, or time) of the named attribute.->attr_name($attrnum)Returns the name of the attribute with the given number.->attr_numtype($attrnum)Returns the type of the attribute with the given number.->attr_has_val($attrnum)Returns a true or false value, depending on whether or not the numbered attribute has any known value constants.->val_has_name($attrnum)Alternate (bad) name for attr_has_val.->val_num($attrnum, $valname)Returns the number of the named value for the attribute number supplied.->val_nameReturns the name of the numbered value for the attribute number supplied. Requirements: · Perl


RADIUS::Dictionary Related Software