Reconfigure CentOS+freeradius+daloradius again
Make some notes~
http://www.haiyun.me/archives/centos-freeradius-daloradius-ros.html
參照上文進(jìn)行配置首先是http服務(wù),mysql服務(wù)的安裝,然后是php,其中要加上php-pear(php擴(kuò)展包)
httpd服務(wù)會(huì)被selinux搞一發(fā),不關(guān)閉selinux的解決方案是,setroubleshoot /var/log/audit/audit.log 來(lái)獲取解決方案, 存在權(quán)限問(wèn)題
在于把daloradius文件夾時(shí)沒(méi)有改變上下文權(quán)限?
?
反正就是需要改變一下**忘了..(*^__^*) 嘻嘻……
接著是安裝freeradius服務(wù)1.修改文件讓其支持sql
2.配置sql.conf radius radpass 作為訪問(wèn)數(shù)據(jù)庫(kù)驗(yàn)證(grant all on radius.* radius有關(guān)系..?)
此處出了點(diǎn)小問(wèn)題,忘記打開radiusd服務(wù),還是通過(guò)radiusd -X測(cè)試才發(fā)現(xiàn)
到這里就可以通過(guò)radtest命令來(lái)做測(cè)試,驗(yàn)證上述是否配置成功,man一下就知道怎么使用了
其中testing123應(yīng)該是密鑰 保存在 /etc/raddb/clients.conf中然后打開localhost/daloradius HTTP 500 Internal Server ???
網(wǎng)上介紹各種方法修改權(quán)限 用戶組 失敗 無(wú)奈關(guān)閉selinux
setenforce 1 設(shè)置SELinux 成為enforcing模式
setenforce 0 設(shè)置SELinux 成為permissive模式
成功訪問(wèn)daloradius/index.php 嗷嗷 但是登錄不進(jìn)去 數(shù)據(jù)庫(kù)連接失敗
仔細(xì)檢查daloradius的config才發(fā)現(xiàn)數(shù)據(jù)庫(kù)鏈接用戶名打錯(cuò)啦 不是root 而是 radius 這里應(yīng)該是為了安全著想?
?
OVER!還要摸索如何計(jì)費(fèi)啦啦啦
轉(zhuǎn)載于:https://www.cnblogs.com/gemmeg/p/3995597.html
總結(jié)
以上是生活随笔為你收集整理的Reconfigure CentOS+freeradius+daloradius again的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 故障树分析
- 下一篇: DB2 导入导出总结