2013-04-11 222 views
0

我已經用mysql成功配置freeradius。 我可以radtest使用命令:squid radius認證「RADIUS服務器沒有響應」

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驗證嘗試魷魚。

我也跟着從一步一步:

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 

在半徑-X調試有錯誤消息像波紋管:

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 

這是什麼錯誤?我該如何解決這個

感謝

回答

0

探聽你產生Accessreq並嘗試使用使用Wireshark您共享密鑰解碼加密的口令。看起來你的測試客戶端不會對密碼進行正確的編碼。 確保testing123在服務器端正確配置。