我正在尝试将带有radclient(http://wiki.freeradius.org/config/Radclient)的请求发送到实际的半径服务器。 所以我从我的Ubuntu服务器终端发送此请求
radclient User-Name = myusername@domain.com User-Password = myPassword Radserver auth Secret
每当我尝试它时,我收到了这条消息:
radclient: Failed to find IP addres for host User-Name = Success
这是什么意思?这是否意味着他没有找到半径服务器?如果是这样,为什么说User-Name = Success?
编辑:
所以现在这是我发送的请求,似乎有效。
echo "User-Name = user@domain.com, User-Password = myPassword" | radclient Radserver auth SECRET -x
用户名和用户密码是正确的,应该被接受,但它们不是。
Sending Access-Request of id 99 to RadServerIP port 1812
User-Name = "user"
User-Password = "myPassword"
rad_recv: Access-Reject packet from host RadServerIP port 1812, id=99, length=20
访问拒绝的原因是什么?因为用户名和密码是完全正确的。
提前感谢您提供任何帮助
答案 0 :(得分:0)
你以错误的方式传递参数。
需要从stdin或使用-f。
指定的文件中读取属性列表对于您的示例,正确的调用将是:
echo "User-Name = myusername@domain.com User-Password = myPassword" | radclient Radserver auth Secret