3 ## eap.conf -- Configuration for EAP types (PEAP, TTLS, etc.)
7 #######################################################################
9 # Whatever you do, do NOT set 'Auth-Type := EAP'. The server
10 # is smart enough to figure this out on its own. The most
11 # common side effect of setting 'Auth-Type := EAP' is that the
12 # users then cannot use ANY other authentication method.
14 # EAP types NOT listed here may be supported via the "eap2" module.
15 # See experimental.conf for documentation.
18 # Invoke the default supported EAP type when
19 # EAP-Identity response is received.
21 # The incoming EAP messages DO NOT specify which EAP
22 # type they will be using, so it MUST be set here.
24 # For now, only one default EAP type may be used at a time.
26 # If the EAP-Type attribute is set by another module,
27 # then that EAP type takes precedence over the
28 # default type configured here.
30 default_eap_type = md5
32 # A list is maintained to correlate EAP-Response
33 # packets with EAP-Request packets. After a
34 # configurable length of time, entries in the list
35 # expire, and are deleted.
39 # There are many EAP types, but the server has support
40 # for only a limited subset. If the server receives
41 # a request for an EAP type it does not support, then
42 # it normally rejects the request. By setting this
43 # configuration to "yes", you can tell the server to
44 # instead keep processing the request. Another module
45 # MUST then be configured to proxy the request to
46 # another RADIUS server which supports that EAP type.
48 # If another module is NOT configured to handle the
49 # request, then the request will still end up being
51 ignore_unknown_eap_types = no
53 # Cisco AP1230B firmware 12.2(13)JA1 has a bug. When given
54 # a User-Name attribute in an Access-Accept, it copies one
55 # more byte than it should.
57 # We can work around it by configurably adding an extra
59 cisco_accounting_username_bug = no
62 # Help prevent DoS attacks by limiting the number of
63 # sessions that the server is tracking. Most systems
64 # can handle ~30 EAP sessions/s, so the default limit
65 # of 4096 should be OK.
71 # We do NOT recommend using EAP-MD5 authentication
72 # for wireless connections. It is insecure, and does
73 # not provide for dynamic WEP keys.
80 # We do not recommend using LEAP in new deployments. See:
81 # http://www.securiteam.com/tools/5TP012ACKE.html
83 # Cisco LEAP uses the MS-CHAP algorithm (but not
84 # the MS-CHAP attributes) to perform it's authentication.
86 # As a result, LEAP *requires* access to the plain-text
87 # User-Password, or the NT-Password attributes.
88 # 'System' authentication is impossible with LEAP.
95 # Currently, this is only permitted inside of EAP-TTLS,
96 # or EAP-PEAP. The module "challenges" the user with
97 # text, and the response from the user is taken to be
100 # Proxying the tunneled EAP-GTC session is a bad idea,
101 # the users password will go over the wire in plain-text,
105 # The default challenge, which many clients
107 #challenge = "Password: "
109 # The plain-text response which comes back
110 # is put into a User-Password attribute,
111 # and passed to another module for
112 # authentication. This allows the EAP-GTC
113 # response to be checked against plain-text,
114 # or crypt'd passwords.
116 # If you say "Local" instead of "PAP", then
117 # the module will look for a User-Password
118 # configured for the request, and do the
119 # authentication itself.
126 # See raddb/certs/README for additional comments
129 # If OpenSSL was not found at the time the server was
130 # built, the "tls", "ttls", and "peap" sections will
133 # Otherwise, when the server first starts in debugging
134 # mode, test certificates will be created. See the
135 # "make_cert_command" below for details, and the README
136 # file in raddb/certs
138 # These test certificates SHOULD NOT be used in a normal
139 # deployment. They are created only to make it easier
140 # to install the server, and to perform some simple
141 # tests with EAP-TLS, TTLS, or PEAP.
145 # http://www.dslreports.com/forum/remark,9286052~mode=flat
149 # These is used to simplify later configurations.
151 certdir = ${confdir}/certs
152 cadir = ${confdir}/certs
154 private_key_password = whatever
155 private_key_file = ${certdir}/server.pem
157 # If Private key & Certificate are located in
158 # the same file, then private_key_file &
159 # certificate_file must contain the same file
162 # If CA_file (below) is not used, then the
163 # certificate_file below MUST include not
164 # only the server certificate, but ALSO all
165 # of the CA certificates used to sign the
166 # server certificate, e.g.:
168 # cat server.pem sub-ca.pem ca.pem > bundle.pem
170 certificate_file = ${certdir}/server.pem
172 # Trusted Root CA list
174 # ALL of the CA's in this list will be trusted
175 # to issue client certificates for authentication.
177 # In general, you should use self-signed
178 # certificates for 802.1x (EAP) authentication.
179 # In that case, this CA file should contain
180 # *one* CA certificate.
182 # This parameter is used only for EAP-TLS,
183 # when you issue client certificates. If you do
184 # not use client certificates, and you do not want
185 # to permit EAP-TLS authentication, then delete
186 # this configuration item.
187 CA_file = ${cadir}/ca.pem
190 # For DH cipher suites to work, you have to
191 # run OpenSSL to create the DH file first:
193 # openssl dhparam -out certs/dh 1024
195 dh_file = ${certdir}/dh
196 random_file = ${certdir}/random
199 # This can never exceed the size of a RADIUS
200 # packet (4096 bytes), and is preferably half
201 # that, to accomodate other attributes in
202 # RADIUS packet. On most APs the MAX packet
203 # length is configured between 1500 - 1600
204 # In these cases, fragment size should be
207 # fragment_size = 1024
209 # include_length is a flag which is
210 # by default set to yes If set to
211 # yes, Total Length of the message is
212 # included in EVERY packet we send.
213 # If set to no, Total Length of the
214 # message is included ONLY in the
215 # First packet of a fragment series.
217 # include_length = yes
219 # Check the Certificate Revocation List
221 # 1) Copy CA certificates and CRLs to same directory.
222 # 2) Execute 'c_rehash <CA certs&CRLs Directory>'.
223 # 'c_rehash' is OpenSSL's command.
224 # 3) uncomment the line below.
227 # CA_path = /path/to/directory/with/ca_certs/and/crls/
230 # If check_cert_issuer is set, the value will
231 # be checked against the DN of the issuer in
232 # the client certificate. If the values do not
233 # match, the cerficate verification will fail,
234 # rejecting the user.
236 # check_cert_issuer = "/C=GB/ST=Berkshire/L=Newbury/O=My Company Ltd"
239 # If check_cert_cn is set, the value will
240 # be xlat'ed and checked against the CN
241 # in the client certificate. If the values
242 # do not match, the certificate verification
243 # will fail rejecting the user.
245 # This check is done only if the previous
246 # "check_cert_issuer" is not set, or if
247 # the check succeeds.
249 # check_cert_cn = %{User-Name}
251 # Set this option to specify the allowed
252 # TLS cipher suites. The format is listed
253 # in "man 1 ciphers".
254 cipher_list = "DEFAULT"
258 # This configuration entry should be deleted
259 # once the server is running in a normal
260 # configuration. It is here ONLY to make
261 # initial deployments easier.
263 make_cert_command = "${certdir}/bootstrap"
266 # Session resumption / fast reauthentication
271 # Enable it. The default is "no".
272 # Deleting the entire "cache" subsection
273 # Also disables caching.
275 # You can disallow resumption for a
276 # particular user by adding the following
277 # attribute to the control item list:
279 # Allow-Session-Resumption = No
281 # If "enable = no" below, you CANNOT
282 # enable resumption for just one user
283 # by setting the above attribute to "yes".
288 # Lifetime of the cached entries, in hours.
289 # The sessions will be deleted after this
292 lifetime = 24 # hours
295 # The maximum number of entries in the
296 # cache. Set to "0" for "infinite".
298 # This could be set to the number of users
299 # who are logged in... which can be a LOT.
305 # The TTLS module implements the EAP-TTLS protocol,
306 # which can be described as EAP inside of Diameter,
307 # inside of TLS, inside of EAP, inside of RADIUS...
309 # Surprisingly, it works quite well.
311 # The TTLS module needs the TLS module to be installed
312 # and configured, in order to use the TLS tunnel
313 # inside of the EAP packet. You will still need to
314 # configure the TLS module, even if you do not want
315 # to deploy EAP-TLS in your network. Users will not
316 # be able to request EAP-TLS, as it requires them to
317 # have a client certificate. EAP-TTLS does not
318 # require a client certificate.
320 # You can make TTLS require a client cert by setting
322 # EAP-TLS-Require-Client-Cert = Yes
324 # in the control items for a request.
327 # The tunneled EAP session needs a default
328 # EAP type which is separate from the one for
329 # the non-tunneled EAP module. Inside of the
330 # TTLS tunnel, we recommend using EAP-MD5.
331 # If the request does not contain an EAP
332 # conversation, then this configuration entry
334 default_eap_type = md5
336 # The tunneled authentication request does
337 # not usually contain useful attributes
338 # like 'Calling-Station-Id', etc. These
339 # attributes are outside of the tunnel,
340 # and normally unavailable to the tunneled
341 # authentication request.
343 # By setting this configuration entry to
344 # 'yes', any attribute which NOT in the
345 # tunneled authentication request, but
346 # which IS available outside of the tunnel,
347 # is copied to the tunneled request.
349 # allowed values: {no, yes}
350 copy_request_to_tunnel = no
352 # The reply attributes sent to the NAS are
353 # usually based on the name of the user
354 # 'outside' of the tunnel (usually
355 # 'anonymous'). If you want to send the
356 # reply attributes based on the user name
357 # inside of the tunnel, then set this
358 # configuration entry to 'yes', and the reply
359 # to the NAS will be taken from the reply to
360 # the tunneled request.
362 # allowed values: {no, yes}
363 use_tunneled_reply = no
366 # The inner tunneled request can be sent
367 # through a virtual server constructed
368 # specifically for this purpose.
370 # If this entry is commented out, the inner
371 # tunneled request will be sent through
372 # the virtual server that processed the
375 virtual_server = "inner-tunnel"
377 # This has the same meaning as the
378 # same field in the "tls" module, above.
379 # The default value here is "yes".
380 # include_length = yes
383 ##################################################
385 # !!!!! WARNINGS for Windows compatibility !!!!!
387 ##################################################
389 # If you see the server send an Access-Challenge,
390 # and the client never sends another Access-Request,
395 # The server certificate has to have special OID's
396 # in it, or else the Microsoft clients will silently
397 # fail. See the "scripts/xpextensions" file for
398 # details, and the following page:
400 # http://support.microsoft.com/kb/814394/en-us
402 # For additional Windows XP SP2 issues, see:
404 # http://support.microsoft.com/kb/885453/en-us
406 # Note that we do not necessarily agree with their
407 # explanation... but the fix does appear to work.
409 ##################################################
412 # The tunneled EAP session needs a default EAP type
413 # which is separate from the one for the non-tunneled
414 # EAP module. Inside of the TLS/PEAP tunnel, we
415 # recommend using EAP-MS-CHAPv2.
417 # The PEAP module needs the TLS module to be installed
418 # and configured, in order to use the TLS tunnel
419 # inside of the EAP packet. You will still need to
420 # configure the TLS module, even if you do not want
421 # to deploy EAP-TLS in your network. Users will not
422 # be able to request EAP-TLS, as it requires them to
423 # have a client certificate. EAP-PEAP does not
424 # require a client certificate.
427 # You can make PEAP require a client cert by setting
429 # EAP-TLS-Require-Client-Cert = Yes
431 # in the control items for a request.
434 # The tunneled EAP session needs a default
435 # EAP type which is separate from the one for
436 # the non-tunneled EAP module. Inside of the
437 # PEAP tunnel, we recommend using MS-CHAPv2,
438 # as that is the default type supported by
440 default_eap_type = mschapv2
442 # the PEAP module also has these configuration
443 # items, which are the same as for TTLS.
444 copy_request_to_tunnel = no
445 use_tunneled_reply = no
447 # When the tunneled session is proxied, the
448 # home server may not understand EAP-MSCHAP-V2.
449 # Set this entry to "no" to proxy the tunneled
450 # EAP-MSCHAP-V2 as normal MSCHAPv2.
451 # proxy_tunneled_request_as_eap = yes
454 # The inner tunneled request can be sent
455 # through a virtual server constructed
456 # specifically for this purpose.
458 # If this entry is commented out, the inner
459 # tunneled request will be sent through
460 # the virtual server that processed the
463 virtual_server = "inner-tunnel"
467 # This takes no configuration.
469 # Note that it is the EAP MS-CHAPv2 sub-module, not
470 # the main 'mschap' module.
472 # Note also that in order for this sub-module to work,
473 # the main 'mschap' module MUST ALSO be configured.
475 # This module is the *Microsoft* implementation of MS-CHAPv2
476 # in EAP. There is another (incompatible) implementation
477 # of MS-CHAPv2 in EAP by Cisco, which FreeRADIUS does not