|
# File radius/auth.rb, line 76
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
|