engines/adva_user/vendor/plugins/authentication/lib/radius/packet.rb
def to_s(secret)
      str = "RAD-Code = #{@code}\n"
      str += "RAD-Identifier = #{@identifier}\n"
      str += "RAD-Authenticator = #{[@authenticator].pack('m')}"
      each {
	|attr, val|
	if (attr == 'User-Password')
	    val = (secret == nil) ? "(hidden)" : password(secret)
	end
	str += "#{attr} = #{val}\n"
      }

      each_vsa {
	|vendorid, vsaname, val|
	str += "Vendor-Id: #{vendorid} -- #{vsaname} = #{val}\n"
      }
      return(str)
    end
# This method will convert a RADIUS packet into a printable
# string.  Any fields in the packet that might possibly contain
# non-printable characters are turned into Base64 strings.
#
# ====Parameters
# +secret+:: The shared secret of the RADIUS system.  Pass nil if
# you don't want to see <tt>User-Password</tt> attributes decoded.
#
# ====Return
# The string representation of the RADIUS packet.
#
This method will convert a RADIUS packet into a printable
string.  Any fields in the packet that might possibly contain
non-printable characters are turned into Base64 strings.

Parameters
+secret+:: The shared secret of the RADIUS system.  Pass nil if
you don't want to see User-Password attributes decoded.

Return
The string representation of the RADIUS packet.
This method will convert a RADIUS packet into a printable string . Any fields in the packet that might possibly contain non - printable characters are turned into Base64 strings . Parameters + secret + :: The shared secret of the RADIUS system . Pass nil if you don ' t want to see User - Password attributes decoded . Return The string representation of the RADIUS packet .
def to_s(secret)
      str = "RAD-Code = #{@code}\n"
      str += "RAD-Identifier = #{@identifier}\n"
      str += "RAD-Authenticator = #{[@authenticator].pack('m')}"
      each {
	|attr, val|
	if (attr == 'User-Password')
	    val = (secret == nil) ? "(hidden)" : password(secret)
	end
	str += "#{attr} = #{val}\n"
      }
      each_vsa {
	|vendorid, vsaname, val|
	str += "Vendor-Id: #{vendorid} -- #{vsaname} = #{val}\n"
      }
      return(str)
    end
def to_s ( secret ) str = "RAD-Code = #{@code}\n" str += "RAD-Identifier = #{@identifier}\n" str += "RAD-Authenticator = #{[@authenticator].pack('m')}" each { | attr , val | if ( attr == 'User-Password' ) val = ( secret == nil ) ? "(hidden)" : password ( secret ) end str += "#{attr} = #{val}\n" } each_vsa { | vendorid , vsaname , val | str += "Vendor-Id: #{vendorid} -- #{vsaname} = #{val}\n" } return ( str ) end
This method will convert a RADIUS packet into a printable
string.
This method will convert a RADIUS packet into a printable string .
secret