Squid radius身份验证“RADIUS服务器没有响应”

时间:2013-04-11 08:46:03

标签: response squid radius

我已经使用mysql成功配置了freeradius。 我可以使用命令radtest:

sudo radtest alice password 192.168.2.3 1812 testing123
Sending Access-Request of id 187 to 192.168.2.3 port 1812
    User-Name = "alice"
    User-Password = "password"
    NAS-IP-Address = 127.0.1.1
    NAS-Port = 1812
    Message-Authenticator = 0x00000000000000000000000000000000

rad_recv: Access-Accept packet from host 192.168.2.3 port 1812, id=187, length=20

现在我尝试使用radius验证squid。

我一步一步地跟着:

http://safesrv.net/setup-squid-and-freeradius-on-centos-5/#comment-1043

但我收到了cache.log上的错误消息日志

Warning: Received invalid reply digest from server
Warning: Received invalid reply digest from server
Warning: Received invalid reply digest from server
squid_rad_auth: No response from RADIUS server

在radius -X debug上有错误信息,如下面的信息:

Sending duplicate reply to client localprivate port 42003 – ID: 2
Sending Access-Reject of id 2 to 192.168.2.3 port 42003
Waking up in 2.9 seconds.
rad_recv: Access-Request packet from host 192.168.2.3 port 42003, id=2, length=63
Sending duplicate reply to client localprivate port 42003 – ID: 2
Sending Access-Reject of id 2 to 192.168.2.3 port 42003
Waking up in 0.9 seconds.
Found Auth-Type = PAP
# Executing group from file /usr/local/etc/raddb/sites-enabled/default
+- entering group PAP {…}
[pap] login attempt with password “b9?I? +�(�Ч�Y�?”
[pap] Using clear text password “password”
[pap] Passwords don’t match
++[pap] returns reject
Failed to authenticate the user.
WARNING: Unprintable characters in the password. Double-check the shared secret on the server and the NAS!
Using Post-Auth-Type REJECT

那是什么错误?我怎么能解决这个问题

由于

1 个答案:

答案 0 :(得分:0)

窥探生成的Accessreq并尝试使用wireshark的共享密码解码加密的密码。看起来您的测试客户端不能正确编码密码。 确保在服务器端正确配置了testing123。