"Fossies" - the Fresh Open Source Software Archive 
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Generic config files source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 ######################################################################
2 # Modifications to the httpd.conf file for mod_auth_radius.c
3 # written by Alan DeKok <aland@freeradius.org>
4 #
5 # Version: $Id: httpd.conf,v 1.7 2003/03/24 19:16:15 aland Exp $
6 #
7 ######################################################################
8 #
9 # These configuration options should be ADDED to the httpd.conf file
10 # for your site.
11 #
12 ######################################################################
13
14
15 ######################################################################
16 #
17 # Tell Apache to load the module.
18 #
19 LoadModule radius_auth_module libexec/mod_auth_radius.so
20
21 ######################################################################
22 #
23 # The order of the modules listed by 'AddModule' can be important.
24 # This seems to work for me.
25 #
26
27 #
28 # just AFTER 'AddModule mod_auth.c
29 # Add the module 'mod_auth_radius.c'
30 #
31 AddModule mod_auth_radius.c
32
33
34 ######################################################################
35 #
36 # Add to the BOTTOM of httpd.conf
37 # If we're using mod_auth_radius, then add it's specific
38 # configuration options.
39 #
40 <IfModule mod_auth_radius.c>
41
42 #
43 # AddRadiusAuth server[:port] <shared-secret> [ timeout [ : retries ]]
44 #
45
46 # Use localhost, the old RADIUS port, secret 'testing123',
47 # time out after 5 seconds, and retry 3 times.
48 AddRadiusAuth localhost:1645 testing123 5:3
49
50 #
51 # AuthRadiusBindAddress <hostname/ip-address>
52 #
53 # Bind client (local) socket to this local IP address.
54 # The server will then see RADIUS client requests will come from
55 # the given IP address.
56 #
57 # By default, the module does not bind to any particular address,
58 # and the operating system chooses the address to use.
59 #
60
61 #
62 # AddRadiusCookieValid <minutes-for-which-cookie-is-valid>
63 #
64 # the special value of 0 (zero) means the cookie is valid forever.
65 #
66 AddRadiusCookieValid 5
67 </IfModule>
68
69 ######################################################################
70 #
71 # A sample per-directory access-control configuration. This may
72 # go into httpd.conf. When used in an '.htaccess' file, the
73 # text BETWEEN the <Location /secure/> </Location> directives
74 # should go into the .htaccess file.
75 #
76 # If you want to be sure it only applies when mod_auth_radius is used,
77 # you can also wrap it in an <IfModule> directive, as above.
78 #
79 <Location /secure/>
80
81 #
82 # Use basic password authentication.
83 # AuthType Digest won't work with RADIUS authentication.
84 #
85 AuthType Basic
86
87 #
88 # Tell the user the realm to which they're authenticating.
89 # This string should be configured for your site.
90 #
91 AuthName "RADIUS authentication for localhost"
92
93 #
94 # don't use 'mod_auth'.
95 # You might want to disable other authentication types here.
96 # You can get a similar effect by commenting out the
97 # 'AddModule mod_auth_*' lines, previously in httpd.conf
98 #
99 AuthAuthoritative off
100
101 #
102 # Use mod_auth_radius for all authentication, and make the responses
103 # from it authoritative.
104 #
105 AuthRadiusAuthoritative on
106
107 #
108 # Make a local variation of AddRadiusCookieValid. The server will choose
109 # the MINIMUM of the two values.
110 #
111 # AuthRadiusCookieValid <minutes-for-which-cookie-is-valid>
112 #
113 AuthRadiusCookieValid 5
114
115 #
116 # Set the use of RADIUS authentication at this <Location>"
117 #
118 # Globally set the RADIUS authentication active.
119 #
120 #
121 # If there is a directory which you do NOT want to have RADIUS
122 # authentication for, then use a <Directory> or <Location> directive,
123 # and set "AuthRadiusActive Off". The default is "On".
124 #
125 AuthRadiusActive On
126
127 #
128 # require that mod_auth_radius return a valid user, otherwise
129 # access is denied.
130 #
131 require valid-user
132
133 #
134 # end of the per-location directives
135 #
136 </Location>