我正在尝试使用 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
这是什么意思?这是否意味着他没有找到radius服务器?如果是这样,为什么它说用户名 = 成功?
编辑:
所以这现在是我发送的请求,它似乎有效。
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
访问拒绝的原因可能是什么?因为用户名和密码绝对正确。
提前感谢您的帮助
最佳答案
你以错误的方式传递论点。
属性列表需要从标准输入或使用 -f 指定的文件中读取。
对于您的示例,正确的调用将是:
echo "User-Name = myusername@domain.com User-Password = myPassword" | radclient Radserver auth Secret
关于ubuntu - radclient : Failed to find IP addres for host User-Name = Success,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38564203/