PDA

Bekijk Volledige Versie : RADIUS op apache



fmanders
26/06/07, 18:05
Ik ben bezig om voor een klant een authentificatie systeem te maken die werkt met RADIUS, nu ben ik hier al een geruime tijd mee bezig geweest en ik loop nogsteeds tegen een probleem aan.

Momenteel heb ik apache1.3.37 met mod_auth_radius draaien, als ik httpd -l doe dan zie ik ook mod_auth_radius er tussen staan.
als ik in een htaccess file of in the apache httpd.conf aanpas om de mod_auth_radius te gaan gebruiken dan gaat deze over z'n nek :/

hier een stukje uit de error log :



[Tue Jun 26 17:12:54 2007] [alert] [client 192.168.18.151] /var/www/html/secure/.htaccess: Invalid command 'AuthRadiusAuthoritative', perhaps mis-spelled or defined by a module not included in the server configuration


de options die ik gebruik horen te werken (de module en de example die ik gebruik komen beide van freeradius.org, net als de radiusserver).

heeft iemand hier ervaring met deze module en zou mij een stukje in de juiste richting kunnen duwen ?

vaplu
26/06/07, 19:29
Zou je toch eens je configuratie kunnen posten? Misschien zie je iets over het hoofd doordat je er al een tijdje mee bezig bent.

fmanders
28/06/07, 10:49
ik gebruik de volgende .htaccess file



################################################## ####################
#
# A sample per-directory access-control configuration, to be used
# as a '.htacces' file.
#

#
# 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"

#
# don't use 'mod_auth'.
# You might want to disable other authentication types here.
# You can get a similar effect by commenting out the
# 'AddModule mod_auth_*' lines, previously in httpd.conf
#
AuthAuthoritative off

#
# 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

#
# Set the use of RADIUS authentication at this <Location>"
#
# Locally set the RADIUS authentication active.
#
# 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


ik krijg als ik de pagina bezocht heb de volgende error :


[Tue Jun 26 17:12:54 2007] [alert] [client 192.168.18.151] /var/www/html/secure/.htaccess: Invalid command 'AuthRadiusAuthoritative', perhaps mis-spelled or defined by a module not included in the server configuration


als ik httpd -l uitvoer krijg ik de volgende feedback


Compiled-in modules:
http_core.c
mod_vhost_alias.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_access.c
mod_auth_radius.c
mod_auth.c
mod_headers.c
mod_so.c
mod_setenvif.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec