Admins eHow

March 3, 2010

How to authenticate Apache 2 with Radius on Debian

Filed under: Apache,Debian,Security — Tags: , , , — FiFtHeLeMeNt @ 11:37 am

Install Apache radius module :

apt-get install libapache2-mod-auth-radius

enable radius module for Apache :

a2enmod auth_radius

open /etc/apache2/apache2.conf and add the following lines to end of file :

AddRadiusAuth IP_OF_RADIUS_SERVER:PORT SECRET 5
AddRadiusCookieValid 60

go to /var/www folder or the folder which you want to protect and create a .htaccess file inside it containing following lines :

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

restart Apache :

/etc/init.d/apache2 restart

for more info regarding the configuration options , you can read the following link :
http://freeradius.org/mod_auth_radius/

3 Comments »

  1. [...] This short guide shows how to authenticate Apache 2 with Radius on Debian More here [...]

    Pingback by How to authenticate Apache 2 with Radius on Debian | Debian-News.net - Your one stop for news about Debian — March 5, 2010 @ 8:40 pm

  2. [...] from here [...]

    Pingback by How to authenticate Apache 2 with Radius on Debian « Nigi Fabio Blog — March 6, 2010 @ 12:14 pm

  3. [...] Install Apache radius module : view source [...]

    Pingback by CS & IT Solutions » Blog Archive » How to authenticate Apache 2 with Radius on Debian — March 7, 2010 @ 2:04 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress