Added notes on self-signed certificates
[freeradius.git] / raddb / eap.conf
1 # -*- text -*-
2 ##
3 ##  eap.conf -- Configuration for EAP types (PEAP, TTLS, etc.)
4 ##
5 ##      $Id$
6
7 #######################################################################
8 #
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.
13 #
14 # EAP types NOT listed here may be supported via the "eap2" module.
15 # See experimental.conf for documentation.
16 #
17         eap {
18                 #  Invoke the default supported EAP type when
19                 #  EAP-Identity response is received.
20                 #
21                 #  The incoming EAP messages DO NOT specify which EAP
22                 #  type they will be using, so it MUST be set here.
23                 #
24                 #  For now, only one default EAP type may be used at a time.
25                 #
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.
29                 #
30                 default_eap_type = md5
31
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.
36                 #
37                 timer_expire     = 60
38
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.
47                 #
48                 #  If another module is NOT configured to handle the
49                 #  request, then the request will still end up being
50                 #  rejected.
51                 ignore_unknown_eap_types = no
52
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.
56                 #
57                 # We can work around it by configurably adding an extra
58                 # zero byte.
59                 cisco_accounting_username_bug = no
60
61                 # Supported EAP-types
62
63                 #
64                 #  We do NOT recommend using EAP-MD5 authentication
65                 #  for wireless connections.  It is insecure, and does
66                 #  not provide for dynamic WEP keys.
67                 #
68                 md5 {
69                 }
70
71                 # Cisco LEAP
72                 #
73                 #  We do not recommend using LEAP in new deployments.  See:
74                 #  http://www.securiteam.com/tools/5TP012ACKE.html
75                 #
76                 #  Cisco LEAP uses the MS-CHAP algorithm (but not
77                 #  the MS-CHAP attributes) to perform it's authentication.
78                 #
79                 #  As a result, LEAP *requires* access to the plain-text
80                 #  User-Password, or the NT-Password attributes.
81                 #  'System' authentication is impossible with LEAP.
82                 #
83                 leap {
84                 }
85
86                 #  Generic Token Card.
87                 #
88                 #  Currently, this is only permitted inside of EAP-TTLS,
89                 #  or EAP-PEAP.  The module "challenges" the user with
90                 #  text, and the response from the user is taken to be
91                 #  the User-Password.
92                 #
93                 #  Proxying the tunneled EAP-GTC session is a bad idea,
94                 #  the users password will go over the wire in plain-text,
95                 #  for anyone to see.
96                 #
97                 gtc {
98                         #  The default challenge, which many clients
99                         #  ignore..
100                         #challenge = "Password: "
101
102                         #  The plain-text response which comes back
103                         #  is put into a User-Password attribute,
104                         #  and passed to another module for
105                         #  authentication.  This allows the EAP-GTC
106                         #  response to be checked against plain-text,
107                         #  or crypt'd passwords.
108                         #
109                         #  If you say "Local" instead of "PAP", then
110                         #  the module will look for a User-Password
111                         #  configured for the request, and do the
112                         #  authentication itself.
113                         #
114                         auth_type = PAP
115                 }
116
117                 ## EAP-TLS
118                 #
119                 #  If OpenSSL was not found at the time the server was
120                 #  built, the "tls", "ttls", and "peap" sections will
121                 #  be ignored.
122                 #
123                 #  Otherwise, when the server first starts in debugging
124                 #  mode, test certificates will be created.  See the
125                 #  "make_cert_command" below for details, and the README
126                 #  file in raddb/certs
127                 #
128                 #  These test certificates SHOULD NOT be used in a normal
129                 #  deployment.  They are created only to make it easier
130                 #  to install the server, and to perform some simple
131                 #  tests with EAP-TLS, TTLS, or PEAP.
132                 #
133                 #  See also:
134                 #
135                 #  http://www.dslreports.com/forum/remark,9286052~mode=flat
136                 #
137                 tls {
138                         #
139                         #  These is used to simplify later configurations.
140                         #
141                         certdir = ${confdir}/certs
142                         cadir = ${confdir}/certs
143
144                         private_key_password = whatever
145                         private_key_file = ${certdir}/server.pem
146
147                         #  If Private key & Certificate are located in
148                         #  the same file, then private_key_file &
149                         #  certificate_file must contain the same file
150                         #  name.
151                         certificate_file = ${certdir}/server.pem
152
153                         #  Trusted Root CA list
154                         #
155                         #  ALL of the CA's in this list will be trusted
156                         #  to issue client certificates for authentication.
157                         #
158                         #  In general, you should use self-signed
159                         #  certificates for 802.1x (EAP) authentication.
160                         #  In that case, this CA file should contain
161                         #  *one* CA certificate.
162                         CA_file = ${cadir}/ca.pem
163
164                         #
165                         #  For DH cipher suites to work, you have to
166                         #  run OpenSSL to create the DH file first:
167                         #
168                         #       openssl dhparam -out certs/dh 1024
169                         #
170                         dh_file = ${certdir}/dh
171                         random_file = ${certdir}/random
172
173                         #
174                         #  This can never exceed the size of a RADIUS
175                         #  packet (4096 bytes), and is preferably half
176                         #  that, to accomodate other attributes in
177                         #  RADIUS packet.  On most APs the MAX packet
178                         #  length is configured between 1500 - 1600
179                         #  In these cases, fragment size should be
180                         #  1024 or less.
181                         #
182                 #       fragment_size = 1024
183
184                         #  include_length is a flag which is
185                         #  by default set to yes If set to
186                         #  yes, Total Length of the message is
187                         #  included in EVERY packet we send.
188                         #  If set to no, Total Length of the
189                         #  message is included ONLY in the
190                         #  First packet of a fragment series.
191                         #
192                 #       include_length = yes
193
194                         #  Check the Certificate Revocation List
195                         #
196                         #  1) Copy CA certificates and CRLs to same directory.
197                         #  2) Execute 'c_rehash <CA certs&CRLs Directory>'.
198                         #    'c_rehash' is OpenSSL's command.
199                         #  3) uncomment the line below.
200                         #  5) Restart radiusd
201                 #       check_crl = yes
202                 #       CA_path = /path/to/directory/with/ca_certs/and/crls/
203
204                        #
205                        #  If check_cert_issuer is set, the value will
206                        #  be checked against the DN of the issuer in
207                        #  the client certificate.  If the values do not
208                        #  match, the cerficate verification will fail,
209                        #  rejecting the user.
210                        #
211                 #       check_cert_issuer = "/C=GB/ST=Berkshire/L=Newbury/O=My Company Ltd"
212
213                        #
214                        #  If check_cert_cn is set, the value will
215                        #  be xlat'ed and checked against the CN
216                        #  in the client certificate.  If the values
217                        #  do not match, the certificate verification
218                        #  will fail rejecting the user.
219                        #
220                        #  This check is done only if the previous
221                        #  "check_cert_issuer" is not set, or if
222                        #  the check succeeds.
223                        #
224                 #       check_cert_cn = %{User-Name}
225                 #
226                         # Set this option to specify the allowed
227                         # TLS cipher suites.  The format is listed
228                         # in "man 1 ciphers".
229                         cipher_list = "DEFAULT"
230
231                         #
232
233                         #  This configuration entry should be deleted
234                         #  once the server is running in a normal
235                         #  configuration.  It is here ONLY to make
236                         #  initial deployments easier.
237                         #
238                         make_cert_command = "${certdir}/bootstrap"
239                 }
240
241                 #  The TTLS module implements the EAP-TTLS protocol,
242                 #  which can be described as EAP inside of Diameter,
243                 #  inside of TLS, inside of EAP, inside of RADIUS...
244                 #
245                 #  Surprisingly, it works quite well.
246                 #
247                 #  The TTLS module needs the TLS module to be installed
248                 #  and configured, in order to use the TLS tunnel
249                 #  inside of the EAP packet.  You will still need to
250                 #  configure the TLS module, even if you do not want
251                 #  to deploy EAP-TLS in your network.  Users will not
252                 #  be able to request EAP-TLS, as it requires them to
253                 #  have a client certificate.  EAP-TTLS does not
254                 #  require a client certificate.
255                 #
256                 #  You can make TTLS require a client cert by setting
257                 #
258                 #       EAP-TLS-Require-Client-Cert = Yes
259                 #
260                 #  in the control items for a request.
261                 #
262                 ttls {
263                         #  The tunneled EAP session needs a default
264                         #  EAP type which is separate from the one for
265                         #  the non-tunneled EAP module.  Inside of the
266                         #  TTLS tunnel, we recommend using EAP-MD5.
267                         #  If the request does not contain an EAP
268                         #  conversation, then this configuration entry
269                         #  is ignored.
270                         default_eap_type = md5
271
272                         #  The tunneled authentication request does
273                         #  not usually contain useful attributes
274                         #  like 'Calling-Station-Id', etc.  These
275                         #  attributes are outside of the tunnel,
276                         #  and normally unavailable to the tunneled
277                         #  authentication request.
278                         #
279                         #  By setting this configuration entry to
280                         #  'yes', any attribute which NOT in the
281                         #  tunneled authentication request, but
282                         #  which IS available outside of the tunnel,
283                         #  is copied to the tunneled request.
284                         #
285                         # allowed values: {no, yes}
286                         copy_request_to_tunnel = no
287
288                         #  The reply attributes sent to the NAS are
289                         #  usually based on the name of the user
290                         #  'outside' of the tunnel (usually
291                         #  'anonymous').  If you want to send the
292                         #  reply attributes based on the user name
293                         #  inside of the tunnel, then set this
294                         #  configuration entry to 'yes', and the reply
295                         #  to the NAS will be taken from the reply to
296                         #  the tunneled request.
297                         #
298                         # allowed values: {no, yes}
299                         use_tunneled_reply = no
300
301                         #
302                         #  The inner tunneled request can be sent
303                         #  through a virtual server constructed
304                         #  specifically for this purpose.
305                         #
306                         #  If this entry is commented out, the inner
307                         #  tunneled request will be sent through
308                         #  the virtual server that processed the
309                         #  outer requests.
310                         #
311                         #virtual_server = "inner-tunnel"
312                 }
313
314                 ##################################################
315                 #
316                 #  !!!!! WARNINGS for Windows compatibility  !!!!!
317                 #
318                 ##################################################
319                 #
320                 #  If you see the server send an Access-Challenge,
321                 #  and the client never sends another Access-Request,
322                 #  then
323                 #
324                 #               STOP!
325                 #
326                 #  The server certificate has to have special OID's
327                 #  in it, or else the Microsoft clients will silently
328                 #  fail.  See the "scripts/xpextensions" file for
329                 #  details, and the following page:
330                 #
331                 #       http://support.microsoft.com/kb/814394/en-us
332                 #
333                 #  For additional Windows XP SP2 issues, see:
334                 #
335                 #       http://support.microsoft.com/kb/885453/en-us
336                 #
337                 #  Note that we do not necessarily agree with their
338                 #  explanation... but the fix does appear to work.
339                 #
340                 ##################################################
341
342                 #
343                 #  The tunneled EAP session needs a default EAP type
344                 #  which is separate from the one for the non-tunneled
345                 #  EAP module.  Inside of the TLS/PEAP tunnel, we
346                 #  recommend using EAP-MS-CHAPv2.
347                 #
348                 #  The PEAP module needs the TLS module to be installed
349                 #  and configured, in order to use the TLS tunnel
350                 #  inside of the EAP packet.  You will still need to
351                 #  configure the TLS module, even if you do not want
352                 #  to deploy EAP-TLS in your network.  Users will not
353                 #  be able to request EAP-TLS, as it requires them to
354                 #  have a client certificate.  EAP-PEAP does not
355                 #  require a client certificate.
356                 #
357                 #
358                 #  You can make TTLS require a client cert by setting
359                 #
360                 #       EAP-TLS-Require-Client-Cert = Yes
361                 #
362                 #  in the control items for a request.
363                 #
364                 peap {
365                         #  The tunneled EAP session needs a default
366                         #  EAP type which is separate from the one for
367                         #  the non-tunneled EAP module.  Inside of the
368                         #  PEAP tunnel, we recommend using MS-CHAPv2,
369                         #  as that is the default type supported by
370                         #  Windows clients.
371                         default_eap_type = mschapv2
372
373                         #  the PEAP module also has these configuration
374                         #  items, which are the same as for TTLS.
375                         copy_request_to_tunnel = no
376                         use_tunneled_reply = no
377
378                         #  When the tunneled session is proxied, the
379                         #  home server may not understand EAP-MSCHAP-V2.
380                         #  Set this entry to "no" to proxy the tunneled
381                         #  EAP-MSCHAP-V2 as normal MSCHAPv2.
382                 #       proxy_tunneled_request_as_eap = yes
383
384                         #
385                         #  The inner tunneled request can be sent
386                         #  through a virtual server constructed
387                         #  specifically for this purpose.
388                         #
389                         #  If this entry is commented out, the inner
390                         #  tunneled request will be sent through
391                         #  the virtual server that processed the
392                         #  outer requests.
393                         #
394                         #virtual_server = "inner-tunnel"
395                 }
396
397                 #
398                 #  This takes no configuration.
399                 #
400                 #  Note that it is the EAP MS-CHAPv2 sub-module, not
401                 #  the main 'mschap' module.
402                 #
403                 #  Note also that in order for this sub-module to work,
404                 #  the main 'mschap' module MUST ALSO be configured.
405                 #
406                 #  This module is the *Microsoft* implementation of MS-CHAPv2
407                 #  in EAP.  There is another (incompatible) implementation
408                 #  of MS-CHAPv2 in EAP by Cisco, which FreeRADIUS does not
409                 #  currently support.
410                 #
411                 mschapv2 {
412                 }
413         }