顯示具有 radius 標籤的文章。 顯示所有文章
顯示具有 radius 標籤的文章。 顯示所有文章

2017/09/14

今天一早上班就有人跟我說網路無法認証
查了一下發現radius 沒起來
再看log發現今天早上centos 7 有很大的更新
其中包含了freeradius的套件
試了几次 daemon就是起不來
後來用 radiusd -X 看訊息如下

rlm_ldap (ldap): Opening additional connection (0), 1 of 32 pending slots used
rlm_ldap (ldap): Connecting to ldap://10.10.10.10:389
rlm_ldap (ldap): Waiting for bind result...
rlm_ldap (ldap): Bind credentials incorrect: Invalid credentials
rlm_ldap (ldap): Server said: NDS error: failed authentication (-669).
rlm_ldap (ldap): Opening connection failed (0)
rlm_ldap (ldap): Removing connection pool
/etc/raddb/mods-enabled/ldap[8]: Instantiation failed for module "ldap"

奇怪為什麼升版前沒問題
升版後就不行了
並沒有去動ldap的config
google了一下發現有類似的情況
問題出在config跟ldap認証的密碼有特殊字元
XD
什麼怪事都有
改掉之後就可以了

再觀察看看

2012/02/08

在/etc/raddb/users 裡加入

blacklist_user_name Auth-Type := Reject

即可禁止user認証

2012/02/04

今天再試了一下
在/etc/raddb/users裡加上
"test" Auth-Type := System
就可以使用OS帳號來認証了
必須要在OS裡建立 test 這個user帳號
之後就可以使用usermod -e 來限制user登入的時間(天為單位)
ex:
usermod -e 20120204 test

如果要修改密碼
可以使用perl

perl -e 'print crypt("abc", "AB"),"\n"'

這樣就可以列出 abc 加密後的值
saV4ITPuYyp8M
再以
usermod -p saV4ITPuYyp8M test 來改密碼了

2012/02/02


因為要測試設備的關係
而新設備無法輪詢不同的認証主机
所以想到用radius來處理
但試了很久
發現改users卻無法同時使用LDAP及OS的帳號
所以直接把user加在user裡試是ok的
範例如下

#test
"test" Auth-Type := Local, User-Password == "test"

加完後radius要重啟