engines/adva_user/vendor/plugins/authentication/lib/radius/auth.rb
def check_passwd(name, pwd, secret)
      @packet.code = 'Access-Request'
      gen_authenticator
      @packet.set_attr('User-Name', name)
      @packet.set_attr('NAS-IP-Address', @myip)
      @packet.set_password(pwd, secret)
      send_packet
      recv_packet
      return(@packet.code == 'Access-Accept')
    end
# Verifies a username/password pair against the RADIUS server
# associated with the Auth object.
#
# =====Parameters
# +name+:: The user name to verify
# +pwd+:: The password associated with this name
# +secret+:: The RADIUS secret of the system
# =====Return value
# returns true or false depending on whether or not the attempt succeeded or failed.
Verifies a username/password pair against the RADIUS server
associated with the Auth object.


Verifies a username / password pair against the RADIUS server associated with the Auth object .
def check_passwd(name, pwd, secret)
      @packet.code = 'Access-Request'
      gen_authenticator
      @packet.set_attr('User-Name', name)
      @packet.set_attr('NAS-IP-Address', @myip)
      @packet.set_password(pwd, secret)
      send_packet
      recv_packet
      return(@packet.code == 'Access-Accept')
    end
def check_passwd ( name , pwd , secret ) @packet . code = 'Access-Request' gen_authenticator @packet . set_attr ( 'User-Name' , name ) @packet . set_attr ( 'NAS-IP-Address' , @myip ) @packet . set_password ( pwd , secret ) send_packet recv_packet return ( @packet . code == 'Access-Accept' ) end
Verifies a username/password pair against the RADIUS server
associated with the Auth object.
Verifies a username / password pair against the RADIUS server associated with the Auth object .
name
pwd
secret