Apache - RADIUS認証
RADIUS認証モジュールの構築について解説します。
あらかじめRADIUSがローカルホストで起動されており、
ApacheがDSOスタイルでデフォルトディレクトリにインストールされている事を前提としています。
用意するもの
mod_auth_radius.tgz
コンパイル&インストール
% tar zxvf mod_auth_radius.tar
% cd mod_auth_radius-1.5.4
% su
# /usr/local/apache/bin/apxs -c -i -a mod_auth_radius.c
コンフィグレーション
# vi /usr/local/apache/conf/httpd.conf
<IfModule mod_auth_radius.c>
AddRadiusAuth localhost:1645 SECRET-KEY 5:3
AddRadiusCookieValid 5
</IfModule>
<Directory /usr/local/apache/htdocs/radius>
Options Indexes FollowSymLinks MultiViews
AllowOverride AuthConfig
Order allow,deny
Allow from all
AuthType Basic
AuthName "RADIUS authentication for localhost"
AuthAuthoritative off
AuthRadiusAuthoritative off
AuthRadiusCookieValid 5
AuthRadiusActive On
require valid-user
</Directory>
起動
# /usr/local/apache/bin/apachectl start