[CLUG-tech] Radius and Virtual Hosts in apache

Jongilanga Guma jongilanga at gmail.com
Wed Dec 19 13:37:36 SAST 2007


Hello,
I am trying to setup Radius with Apache 2.2.4 running on Ubuntu GNU
Linux but  get "AddRadiusAuth "not allowed here" when I do a test
config.
I uncomment.
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_file_module modules/mod_authn_file.so
And addded
LoadModule radius_auth_module modules/mod_auth_radius.so


Below is my Apache configuration:

<VirtualHost *>
	ServerName jongi.za.net
	ServerAlias www.jongi.za.net
	
	<Directory />
		Order deny,allow
		Allow from all
	
	</Directory>
	
	<Location "/restricted/">
		# AddRadiusAuth server[:port] <shared-secret> [ timeout [ : retries ]]
    		AddRadiusAuth localhost:1792 testSecret 5:3
    		# Use basic password authentication.
    		# AuthType Digest won't work with RADIUS authentication.
    		AuthType Basic
    		# Tell the user the realm to which they're authenticating.
    		# This string should be configured for your site.
    		AuthName "RADIUS authentication for localhost"
    		# Use mod_auth_radius for all authentication, and make the responses
   		# from it authoritative.
    		AuthRadiusAuthoritative on
    		# Make a local variation of AddRadiusCookieValid.  The server will choose
    		# the MINIMUM of the two values.
    		# AuthRadiusCookieValid <minutes-for-which-cookie-is-valid>
    		AuthRadiusCookieValid 5
    		# If there is a directory which you do NOT want to have RADIUS
    		# authentication for, then use a <Directory> directive, and
    		# set "AuthRadiusActive Off"
    		AuthRadiusActive On
   		# require that mod_auth_radius return a valid user, otherwise
    		# access is denied.
                Require valid-user
	</Location>
	
</VirtualHost>

Please shed some light,

Regards,
Jongi


More information about the clug-tech mailing list