]>
Commit | Line | Data |
---|---|---|
cce917e3 SP |
1 | ## This Loads mod_auth_xradius into Apache |
2 | LoadModule auth_xradius_module modules/mod_auth_xradius.so | |
3 | ||
4 | ## The Cache for mod_auth_xradius must be configured globally. | |
5 | ## If you do not want Authentication Caching, set: | |
203e0aa3 | 6 | AuthXRadiusCache none - |
cce917e3 SP |
7 | |
8 | ## A Local DBM Based Cache (low performance) | |
9 | # AuthXRadiusCache dbm "conf/auth_xradius_cache" | |
10 | ||
11 | ## Only a Single memcached Server | |
12 | # AuthXRadiusCache memcache "127.0.0.1" | |
13 | ## Multiple memcached Servers | |
f3d231a0 | 14 | #AuthXRadiusCache memcache "127.0.0.1 10.0.0.10 10.0.0.11 10.0.0.11:11212" |
cce917e3 SP |
15 | |
16 | ## Time in Seconds that an entry will be cached. | |
17 | AuthXRadiusCacheTimeout 300 | |
18 | ||
19 | <Directory "/path/to/my/docroot"> | |
20 | ## All of the directives inside the <Directory> block can be placed | |
21 | ## inside '.htaccess' files. | |
22 | ||
23 | ## This is what the client sees in their Prompt. | |
24 | AuthName "Private Area" | |
25 | ||
26 | ## Type of authentication to use. | |
203e0aa3 SP |
27 | AuthBasicProvider xradius |
28 | AuthType basic | |
cce917e3 SP |
29 | |
30 | ## Address and the Shared Secret of the RADIUS Server to contact. | |
31 | AuthXRadiusAddServer "localhost:1812" "super-secret" | |
32 | ## Multiple Servers can be added in the same context. | |
33 | # AuthXRadiusAddServer "10.0.0.10:1812" "2secrets" | |
34 | # AuthXRadiusAddServer "10.0.0.11:1812" "secret1" | |
35 | ||
36 | ## Time in Seconds to wait for replies from the RADIUS Servers | |
37 | AuthXRadiusTimeout 2 | |
38 | ||
39 | ## Number of times to resend a request to a server if no reply is received. | |
40 | AuthXRadiusRetries 2 | |
41 | ||
42 | ## This tells apache that we want a valid user and password. | |
43 | require valid-user | |
f3d231a0 | 44 | </Directory> |