engines/adva_user/vendor/plugins/authentication/lib/radius/dictionary.rb
# Given an attribute number, return the name corresponding to it,
# based on the dictionary file(s) that have been read, the reverse
# of the attr_num method.
#
# ====Parameters
# +attrname+:: Name of the attribute whose number is desired.
#
# ====Return Value
# The number corresponding to the appropriate attribute name
# given.
Given an attribute number, return the name corresponding to it,
based on the dictionary file(s) that have been read, the reverse
of the attr_num method.

Parameters
+attrname+:: Name of the attribute whose number is desired.

Return Value
The number corresponding to the appropriate attribute name
given.
Given an attribute number return the name corresponding to it based on the dictionary file ( s ) that have been read the reverse of the attr_num method . Parameters + attrname + :: Name of the attribute whose number is desired . Return Value The number corresponding to the appropriate attribute name given .
def attr_name(attrnum)
      if (@rattr[attrnum] == nil || @rattr[attrnum][0] == nil)
	return(nil)
      end
      return(@rattr[attrnum][0])
    end
def attr_name ( attrnum ) if ( @rattr [ attrnum ] == nil || @rattr [ attrnum ] [ 0 ] == nil ) return ( nil ) end return ( @rattr [ attrnum ] [ 0 ] ) end
Given an attribute number, return the name corresponding to it,
based on the dictionary file(s) that have been read, the reverse
of the attr_num method.
Given an attribute number return the name corresponding to it based on the dictionary file ( s ) that have been read the reverse of the attr_num method .
attrnum