2013-06-20 113 views
0

我想實現mod_auth_radius在我的一個本地目錄中的目錄。我已經安裝並啓用了該模塊。在我的「/etc/apache2/apache.conf」文件的末尾添加了以下行。身份驗證失敗的「/」:密碼不匹配在Apache半徑身份驗證

AddRadiusAuth 223.27.112.18:1812 idea 5 
AddRadiusCookieValid 60 

該目錄中的.htaccess文件包含這些行。

AuthType Basic 
AuthName "AdminseHow Radius Authentication" 
AuthBasicAuthoritative Off 
AuthBasicProvider radius 
AuthRadiusAuthoritative on 
AuthRadiusActive On 
Require valid-user 

但是每次我想登錄,我都失敗了。我在我的錯誤日誌中有以下錯誤。

[Thu Jun 20 12:11:08 2013] [error] [client 127.0.0.1] user mehedi: authentication failure for "/": Password Mismatch 
[Thu Jun 20 12:18:41 2013] [error] [client 127.0.0.1] user mehedi: authentication failure for "/": Password Mismatch 
[Thu Jun 20 12:20:20 2013] [error] [client 127.0.0.1] user 1778: authentication failure for "/": Password Mismatch 
[Thu Jun 20 12:35:51 2013] [error] [client 127.0.0.1] user mehedi: authentication failure for "/": Password Mismatch 
[Thu Jun 20 13:02:17 2013] [error] [client 127.0.0.1] user mehedi: authentication failure for "/": Password Mismatch 
[Thu Jun 20 13:02:40 2013] [error] [client 127.0.0.1] user mehedi: authentication failure for "/": Password Mismatch 

謝謝

回答

0

我沒有挖得很深到這一點,但我觀察了Password Mismatch錯誤(它實際上是錯誤#AH01617)當編碼密碼的方法不匹配的密碼是怎麼編碼在最終驗證系統上。

在你的情況下,Apache將使用AuthType Basic請求密碼純文本Basic Authentication

我無法找到你所使用的AddRadiusAuth指令文件,但如果指定了idea加密算法您半徑認證服務器上使用,那麼這絕對不符合密碼最初是如何徵求(基本認證)。

我不會把錢花在這一點,因爲我不能爲AddRadiusAuth找到文檔,但它看起來像你還可以根據this third party網站指定除idea其他sharedsecret。但是,這也必須是你的服務器設置方式,這也是你需要考慮的因素。