blob: 19b9de6c113ec25a8a22403b18618debd38ef839 [file] [log] [blame]
Chetan Gaonker7f4bf742016-05-04 15:56:08 -07001rest {
2 #
3 # This subsection configures the tls related items
4 # that control how FreeRADIUS connects to a HTTPS
5 # server.
6 #
7 tls {
8# ca_file = ${certdir}/cacert.pem
9# ca_path = ${certdir}
10
11# certificate_file = /path/to/radius.crt
12# private_key_file = /path/to/radius.key
13# private_key_password = "supersecret"
14# random_file = ${certdir}/random
15
16 # Server certificate verification requirements. Can be:
17 # "no" (don't even bother trying)
18 # "yes" (verify the cert was issued by one of the
19 # trusted CAs)
20 #
21 # The default is "yes"
22# check_cert = "yes"
23
24 # Server certificate CN verification requirements. Can be:
25 # "no" (don't even bother trying)
26 # "yes" (verify the CN in the certificate matches the host
27 # in the URI)
28 #
29 # The default is "yes"
30# check_cert_cn = "yes"
31 }
32
33 # rlm_rest will open a connection to the server specified in connect_uri
34 # to populate the connection cache, ready for the first request.
35 # The server will not start if the server specified is unreachable.
36 #
37 # If you wish to disable this pre-caching and reachability check,
38 # comment out the configuration item below.
39 connect_uri = "http://127.0.0.1/"
40
41 #
42 # The following config items can be used in each of the sections.
43 # The sections themselves reflect the sections in the server.
44 # For example if you list rest in the authorize section of a virtual server,
45 # the settings from the authorize section here will be used.
46 #
47 # The following config items may be listed in any of the sections:
48 # uri - to send the request to.
49 # method - HTTP method to use, one of 'get', 'post', 'put', 'delete'.
50 # body - The format of the HTTP body sent to the remote server.
51 # May be 'none', 'post' or 'json', defaults to 'none'.
52 # tls - TLS settings for HTTPS.
53 # auth - HTTP auth method to use, one of 'none', 'srp', 'basic',
54 # 'digest', 'digest-ie', 'gss-negotiate', 'ntlm',
55 # 'ntlm-winbind', 'any', 'safe'. defaults to 'none'.
56 # username - User to authenticate as, will be expanded.
57 # password - Password to use for authentication, will be expanded.
58 # require_auth - Require HTTP authentication.
59 # timeout - HTTP request timeout in seconds, defaults to 4.
60 #
61 authorize {
62 uri = "${..connect_uri}/user/%{User-Name}/mac/%{Called-Station-ID}?section=authorize"
63 method = "get"
64 tls = ${..tls}
65 }
66 authenticate {
67 uri = "${..connect_uri}/user/%{User-Name}/mac/%{Called-Station-ID}?section=authenticate"
68 method = "get"
69 tls = ${..tls}
70 }
71 accounting {
72 uri = "${..connect_uri}/user/%{User-Name}/mac/%{Called-Station-ID}?section=accounting"
73 method = "post"
74 tls = ${..tls}
75 }
76 session {
77 uri = "${..connect_uri}/user/%{User-Name}/mac/%{Called-Station-ID}?section=checksimul"
78 method = "post"
79 tls = ${..tls}
80 }
81 post-auth {
82 uri = "${..connect_uri}/user/%{User-Name}/mac/%{Called-Station-ID}?section=post-auth"
83 method = "post"
84 tls = ${..tls}
85 }
86
87 #
88 # The connection pool is new for 3.0, and will be used in many
89 # modules, for all kinds of connection-related activity.
90 #
91 pool {
92 # Number of connections to start
93 start = 5
94
95 # Minimum number of connections to keep open
96 min = 4
97
98 # Maximum number of connections
99 #
100 # If these connections are all in use and a new one
101 # is requested, the request will NOT get a connection.
102 max = 10
103
104 # Spare connections to be left idle
105 #
106 # NOTE: Idle connections WILL be closed if "idle_timeout"
107 # is set.
108 spare = 3
109
110 # Number of uses before the connection is closed
111 #
112 # 0 means "infinite"
113 uses = 0
114
115 # The lifetime (in seconds) of the connection
116 lifetime = 0
117
118 # idle timeout (in seconds). A connection which is
119 # unused for this length of time will be closed.
120 idle_timeout = 60
121
122 # NOTE: All configuration settings are enforced. If a
123 # connection is closed because of "idle_timeout",
124 # "uses", or "lifetime", then the total number of
125 # connections MAY fall below "min". When that
126 # happens, it will open a new connection. It will
127 # also log a WARNING message.
128 #
129 # The solution is to either lower the "min" connections,
130 # or increase lifetime/idle_timeout.
131 }
132}