■ freeradius + MySQL認證 (OS: RHEL5)
cd freeradius-server-2.1.6
./configure
make
make install
mysqladmin -u root password YOURPASSWORD
cd /usr/lcdocal/etc/raddb/sql/mysql
mysql -uroot -pYOURPASSWORD radius < schema.sql
vi /usr/local/etc/raddb/sql.conf
vi /usr/local/etc/raddb/clients.conf
vi /usr/local/etc/raddb/sites-enabled/default
編緝sites-enabled/default 可以將unix, files mark掉, 將sql unmark
在radius.conf, 記得uncomment 下面這行#$INCLUDE sql.conf
■ 自訂attribute
新增一檔案
vi /usr/local/share/freeradius/dictionary.vmax
檔案內容如下:
VENDOR VMAX 7777
BEGIN-VENDOR VMAX
#
# Standard attribute
#
ATTRIBUTE VMAX-group 1 string
END-VENDOR VMAX
在適當位置加入
$INCLUDE dictionary.vmax
這樣freeradius就會認得VMAX-group了
便可在radreply, radgroupreply 使用此attribute.
This entry was posted
on 2009年7月10日 星期五
at 下午3:12
and is filed under
Linux
. You can follow any responses to this entry through the
comments feed
.