Add OCSP softfail option
[freeradius.git] / raddb / mods-available / eap
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                 #
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.
66                 max_sessions = 4096
67
68                 # Supported EAP-types
69
70                 #
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.
74                 #
75                 md5 {
76                 }
77
78                 # Cisco LEAP
79                 #
80                 #  We do not recommend using LEAP in new deployments.  See:
81                 #  http://www.securiteam.com/tools/5TP012ACKE.html
82                 #
83                 #  Cisco LEAP uses the MS-CHAP algorithm (but not
84                 #  the MS-CHAP attributes) to perform it's authentication.
85                 #
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.
89                 #
90                 leap {
91                 }
92
93                 #  Generic Token Card.
94                 #
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
98                 #  the User-Password.
99                 #
100                 #  Proxying the tunneled EAP-GTC session is a bad idea,
101                 #  the users password will go over the wire in plain-text,
102                 #  for anyone to see.
103                 #
104                 gtc {
105                         #  The default challenge, which many clients
106                         #  ignore..
107                         #challenge = "Password: "
108
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.
115                         #
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.
120                         #
121                         auth_type = PAP
122                 }
123
124                 ## EAP-TLS
125                 #
126                 #  See raddb/certs/README for additional comments
127                 #  on certificates.
128                 #
129                 #  If OpenSSL was not found at the time the server was
130                 #  built, the "tls", "ttls", and "peap" sections will
131                 #  be ignored.
132                 #
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
137                 #
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.
142                 #
143                 #  See also:
144                 #
145                 #  http://www.dslreports.com/forum/remark,9286052~mode=flat
146                 #
147                 #  Note that you should NOT use a globally known CA here!
148                 #  e.g. using a Verisign cert as a "known CA" means that
149                 #  ANYONE who has a certificate signed by them can
150                 #  authenticate via EAP-TLS!  This is likely not what you want.
151                 tls {
152                         private_key_password = whatever
153                         private_key_file = ${certdir}/server.pem
154
155                         #  If Private key & Certificate are located in
156                         #  the same file, then private_key_file &
157                         #  certificate_file must contain the same file
158                         #  name.
159                         #
160                         #  If CA_file (below) is not used, then the
161                         #  certificate_file below MUST include not
162                         #  only the server certificate, but ALSO all
163                         #  of the CA certificates used to sign the
164                         #  server certificate.
165                         certificate_file = ${certdir}/server.pem
166
167                         #  Trusted Root CA list
168                         #
169                         #  ALL of the CA's in this list will be trusted
170                         #  to issue client certificates for authentication.
171                         #
172                         #  In general, you should use self-signed
173                         #  certificates for 802.1x (EAP) authentication.
174                         #  In that case, this CA file should contain
175                         #  *one* CA certificate.
176                         #
177                         #  This parameter is used only for EAP-TLS,
178                         #  when you issue client certificates.  If you do
179                         #  not use client certificates, and you do not want
180                         #  to permit EAP-TLS authentication, then delete
181                         #  this configuration item.
182                         CA_file = ${cadir}/ca.pem
183
184                         #
185                         #  If OpenSSL supports TLS-PSK, then we can use
186                         #  a PSK identity and (hex) password.  When the
187                         #  following two configuration items are specified,
188                         #  then certificate-based configuration items are
189                         #  not allowed.  e.g.:
190                         #
191                         #       private_key_password
192                         #       private_key_file
193                         #       certificate_file
194                         #       CA_file
195                         #       CA_path
196                         #
197                         #  For now, the identity is fixed, and must be the
198                         #  same on the client.  The passphrase must be a hex
199                         #  value, and can be up to 256 hex digits.
200                         #
201                         #  Future versions of the server may be able to
202                         #  look up the shared key (hexphrase) based on the
203                         #  identity.
204                         #
205                 #       psk_identity = "test"
206                 #       psk_hexphrase = "036363823"
207
208                         #
209                         #  For DH cipher suites to work, you have to
210                         #  run OpenSSL to create the DH file first:
211                         #
212                         #       openssl dhparam -out certs/dh 1024
213                         #
214                         dh_file = ${certdir}/dh
215                         random_file = ${certdir}/random
216
217                         #
218                         #  This can never exceed the size of a RADIUS
219                         #  packet (4096 bytes), and is preferably half
220                         #  that, to accomodate other attributes in
221                         #  RADIUS packet.  On most APs the MAX packet
222                         #  length is configured between 1500 - 1600
223                         #  In these cases, fragment size should be
224                         #  1024 or less.
225                         #
226                 #       fragment_size = 1024
227
228                         #  include_length is a flag which is
229                         #  by default set to yes If set to
230                         #  yes, Total Length of the message is
231                         #  included in EVERY packet we send.
232                         #  If set to no, Total Length of the
233                         #  message is included ONLY in the
234                         #  First packet of a fragment series.
235                         #
236                 #       include_length = yes
237
238                         #  Check the Certificate Revocation List
239                         #
240                         #  1) Copy CA certificates and CRLs to same directory.
241                         #  2) Execute 'c_rehash <CA certs&CRLs Directory>'.
242                         #    'c_rehash' is OpenSSL's command.
243                         #  3) uncomment the line below.
244                         #  5) Restart radiusd
245                 #       check_crl = yes
246                         CA_path = ${cadir}
247
248                        #
249                        #  If check_cert_issuer is set, the value will
250                        #  be checked against the DN of the issuer in
251                        #  the client certificate.  If the values do not
252                        #  match, the cerficate verification will fail,
253                        #  rejecting the user.
254                        #
255                        #  In 2.1.10 and later, this check can be done
256                        #  more generally by checking the value of the
257                        #  TLS-Client-Cert-Issuer attribute.  This check
258                        #  can be done via any mechanism you choose.
259                        #
260                 #       check_cert_issuer = "/C=GB/ST=Berkshire/L=Newbury/O=My Company Ltd"
261
262                        #
263                        #  If check_cert_cn is set, the value will
264                        #  be xlat'ed and checked against the CN
265                        #  in the client certificate.  If the values
266                        #  do not match, the certificate verification
267                        #  will fail rejecting the user.
268                        #
269                        #  This check is done only if the previous
270                        #  "check_cert_issuer" is not set, or if
271                        #  the check succeeds.
272                        #
273                        #  In 2.1.10 and later, this check can be done
274                        #  more generally by checking the value of the
275                        #  TLS-Client-Cert-CN attribute.  This check
276                        #  can be done via any mechanism you choose.
277                        #
278                 #       check_cert_cn = %{User-Name}
279                 #
280                         # Set this option to specify the allowed
281                         # TLS cipher suites.  The format is listed
282                         # in "man 1 ciphers".
283                         cipher_list = "DEFAULT"
284
285                         #
286
287                         # This command creates the initial "snake oil"
288                         # certificates when the server is run as root,
289                         # and via "radiusd -X".
290                         #
291                         # As of 2.1.11, it *also* checks the server
292                         # certificate for validity, including expiration.
293                         # This means that radiusd will refuse to start
294                         # when the certificate has expired.  The alternative
295                         # is to have the 802.1X clients refuse to connect
296                         # when they discover the certificate has expired.
297                         #
298                         # Debugging client issues is hard, so it's better
299                         # for the server to print out an error message,
300                         # and refuse to start.
301                         #
302                         make_cert_command = "${certdir}/bootstrap"
303
304                         #
305                         #  Elliptical cryptography configuration
306                         #
307                         #  Only for OpenSSL >= 0.9.8.f
308                         #
309                         ecdh_curve = "prime256v1"
310
311                         #
312                         #  Session resumption / fast reauthentication
313                         #  cache.
314                         #
315                         #  The cache contains the following information:
316                         #
317                         #  session Id - unique identifier, managed by SSL
318                         #  User-Name  - from the Access-Accept
319                         #  Stripped-User-Name - from the Access-Request
320                         #  Cached-Session-Policy - from the Access-Accept
321                         #
322                         #  The "Cached-Session-Policy" is the name of a
323                         #  policy which should be applied to the cached
324                         #  session.  This policy can be used to assign
325                         #  VLANs, IP addresses, etc.  It serves as a useful
326                         #  way to re-apply the policy from the original
327                         #  Access-Accept to the subsequent Access-Accept
328                         #  for the cached session.
329                         #
330                         #  On session resumption, these attributes are
331                         #  copied from the cache, and placed into the
332                         #  reply list.
333                         #
334                         #  You probably also want "use_tunneled_reply = yes"
335                         #  when using fast session resumption.
336                         #
337                         cache {
338                               #
339                               #  Enable it.  The default is "no".
340                               #  Deleting the entire "cache" subsection
341                               #  Also disables caching.
342                               #
343                               #  You can disallow resumption for a
344                               #  particular user by adding the following
345                               #  attribute to the control item list:
346                               #
347                               #         Allow-Session-Resumption = No
348                               #
349                               #  If "enable = no" below, you CANNOT
350                               #  enable resumption for just one user
351                               #  by setting the above attribute to "yes".
352                               #
353                               enable = no
354
355                               #
356                               #  Lifetime of the cached entries, in hours.
357                               #  The sessions will be deleted after this
358                               #  time.
359                               #
360                               lifetime = 24 # hours
361
362                               #
363                               #  The maximum number of entries in the
364                               #  cache.  Set to "0" for "infinite".
365                               #
366                               #  This could be set to the number of users
367                               #  who are logged in... which can be a LOT.
368                               #
369                               max_entries = 255
370                         }
371
372                         #
373                         #  As of version 2.1.10, client certificates can be
374                         #  validated via an external command.  This allows
375                         #  dynamic CRLs or OCSP to be used.
376                         #
377                         #  This configuration is commented out in the
378                         #  default configuration.  Uncomment it, and configure
379                         #  the correct paths below to enable it.
380                         #
381                         verify {
382                                 #  A temporary directory where the client
383                                 #  certificates are stored.  This directory
384                                 #  MUST be owned by the UID of the server,
385                                 #  and MUST not be accessible by any other
386                                 #  users.  When the server starts, it will do
387                                 #  "chmod go-rwx" on the directory, for
388                                 #  security reasons.  The directory MUST
389                                 #  exist when the server starts.
390                                 #
391                                 #  You should also delete all of the files
392                                 #  in the directory when the server starts.
393                 #               tmpdir = /tmp/radiusd
394
395                                 #  The command used to verify the client cert.
396                                 #  We recommend using the OpenSSL command-line
397                                 #  tool.
398                                 #
399                                 #  The ${..CA_path} text is a reference to
400                                 #  the CA_path variable defined above.
401                                 #
402                                 #  The %{TLS-Client-Cert-Filename} is the name
403                                 #  of the temporary file containing the cert
404                                 #  in PEM format.  This file is automatically
405                                 #  deleted by the server when the command
406                                 #  returns.
407                 #               client = "/path/to/openssl verify -CApath ${..CA_path} %{TLS-Client-Cert-Filename}"
408                         }
409
410                         #
411                         #  OCSP Configuration
412                         #  Certificates can be verified against an OCSP
413                         #  Responder. This makes it possible to immediately
414                         #  revoke certificates without the distribution of
415                         #  new Certificate Revokation Lists (CRLs).
416                         #
417                         ocsp {
418                               #
419                               #  Enable it.  The default is "no".
420                               #  Deleting the entire "ocsp" subsection
421                               #  Also disables ocsp checking
422                               #
423                               enable = no
424
425                               #
426                               #  The OCSP Responder URL can be automatically
427                               #  extracted from the certificate in question.
428                               #  To override the OCSP Responder URL set
429                               #  "override_cert_url = yes". 
430                               #
431                               override_cert_url = yes
432
433                               #
434                               #  If the OCSP Responder address is not
435                               #  extracted from the certificate, the
436                               #  URL can be defined here.
437
438                               #
439                               #  Limitation: Currently the HTTP
440                               #  Request is not sending the "Host: "
441                               #  information to the web-server.  This
442                               #  can be a problem if the OCSP
443                               #  Responder is running as a vhost.
444                               #
445                               url = "http://127.0.0.1/ocsp/"
446
447                               #
448                               # If the OCSP Responder can not cope with nonce
449                               # in the request, then it can be disabled here.
450                               #
451                               # For security reasons, disabling this option
452                               # is not recommended as nonce protects against
453                               # replay attacks.
454                               #
455                               # Note that Microsoft AD Certificate Services OCSP
456                               # Responder does not enable nonce by default. It is
457                               # more secure to enable nonce on the responder than
458                               # to disable it in the query here.
459                               # See http://technet.microsoft.com/en-us/library/cc770413%28WS.10%29.aspx
460                               #
461                               # use_nonce = yes
462
463                               #
464                               # Number of seconds before giving up waiting
465                               # for OCSP response. 0 uses system default.
466                               #
467                               # timeout = 0
468
469                               #
470                               # Normally an error in querying the OCSP
471                               # responder (no response from server, server did
472                               # not understand the request, etc) will result in
473                               # a validation failure.
474                               #
475                               # To treat these errors as 'soft' failures and
476                               # still accept the certificate, enable this
477                               # option.
478                               # 
479                               # Warning: this may enable clients with revoked
480                               # certificates to connect if the OCSP responder
481                               # is not available. Use with caution.
482                               #
483                               # softfail = no
484                         }
485                 }
486
487                 #  The TTLS module implements the EAP-TTLS protocol,
488                 #  which can be described as EAP inside of Diameter,
489                 #  inside of TLS, inside of EAP, inside of RADIUS...
490                 #
491                 #  Surprisingly, it works quite well.
492                 #
493                 #  The TTLS module needs the TLS module to be installed
494                 #  and configured, in order to use the TLS tunnel
495                 #  inside of the EAP packet.  You will still need to
496                 #  configure the TLS module, even if you do not want
497                 #  to deploy EAP-TLS in your network.  Users will not
498                 #  be able to request EAP-TLS, as it requires them to
499                 #  have a client certificate.  EAP-TTLS does not
500                 #  require a client certificate.
501                 #
502                 #  You can make TTLS require a client cert by setting
503                 #
504                 #       EAP-TLS-Require-Client-Cert = Yes
505                 #
506                 #  in the control items for a request.
507                 #
508                 ttls {
509                         #  The tunneled EAP session needs a default
510                         #  EAP type which is separate from the one for
511                         #  the non-tunneled EAP module.  Inside of the
512                         #  TTLS tunnel, we recommend using EAP-MD5.
513                         #  If the request does not contain an EAP
514                         #  conversation, then this configuration entry
515                         #  is ignored.
516                         default_eap_type = md5
517
518                         #  The tunneled authentication request does
519                         #  not usually contain useful attributes
520                         #  like 'Calling-Station-Id', etc.  These
521                         #  attributes are outside of the tunnel,
522                         #  and normally unavailable to the tunneled
523                         #  authentication request.
524                         #
525                         #  By setting this configuration entry to
526                         #  'yes', any attribute which NOT in the
527                         #  tunneled authentication request, but
528                         #  which IS available outside of the tunnel,
529                         #  is copied to the tunneled request.
530                         #
531                         # allowed values: {no, yes}
532                         copy_request_to_tunnel = no
533
534                         #  The reply attributes sent to the NAS are
535                         #  usually based on the name of the user
536                         #  'outside' of the tunnel (usually
537                         #  'anonymous').  If you want to send the
538                         #  reply attributes based on the user name
539                         #  inside of the tunnel, then set this
540                         #  configuration entry to 'yes', and the reply
541                         #  to the NAS will be taken from the reply to
542                         #  the tunneled request.
543                         #
544                         # allowed values: {no, yes}
545                         use_tunneled_reply = no
546
547                         #
548                         #  The inner tunneled request can be sent
549                         #  through a virtual server constructed
550                         #  specifically for this purpose.
551                         #
552                         #  If this entry is commented out, the inner
553                         #  tunneled request will be sent through
554                         #  the virtual server that processed the
555                         #  outer requests.
556                         #
557                         virtual_server = "inner-tunnel"
558
559                         #  This has the same meaning as the
560                         #  same field in the "tls" module, above.
561                         #  The default value here is "yes".
562                 #       include_length = yes
563                 }
564
565                 ##################################################
566                 #
567                 #  !!!!! WARNINGS for Windows compatibility  !!!!!
568                 #
569                 ##################################################
570                 #
571                 #  If you see the server send an Access-Challenge,
572                 #  and the client never sends another Access-Request,
573                 #  then
574                 #
575                 #               STOP!
576                 #
577                 #  The server certificate has to have special OID's
578                 #  in it, or else the Microsoft clients will silently
579                 #  fail.  See the "scripts/xpextensions" file for
580                 #  details, and the following page:
581                 #
582                 #       http://support.microsoft.com/kb/814394/en-us
583                 #
584                 #  For additional Windows XP SP2 issues, see:
585                 #
586                 #       http://support.microsoft.com/kb/885453/en-us
587                 #
588                 #
589                 #  If is still doesn't work, and you're using Samba,
590                 #  you may be encountering a Samba bug.  See:
591                 #
592                 #       https://bugzilla.samba.org/show_bug.cgi?id=6563
593                 #
594                 #  Note that we do not necessarily agree with their
595                 #  explanation... but the fix does appear to work.
596                 #
597                 ##################################################
598
599                 #
600                 #  The tunneled EAP session needs a default EAP type
601                 #  which is separate from the one for the non-tunneled
602                 #  EAP module.  Inside of the TLS/PEAP tunnel, we
603                 #  recommend using EAP-MS-CHAPv2.
604                 #
605                 #  The PEAP module needs the TLS module to be installed
606                 #  and configured, in order to use the TLS tunnel
607                 #  inside of the EAP packet.  You will still need to
608                 #  configure the TLS module, even if you do not want
609                 #  to deploy EAP-TLS in your network.  Users will not
610                 #  be able to request EAP-TLS, as it requires them to
611                 #  have a client certificate.  EAP-PEAP does not
612                 #  require a client certificate.
613                 #
614                 #
615                 #  You can make PEAP require a client cert by setting
616                 #
617                 #       EAP-TLS-Require-Client-Cert = Yes
618                 #
619                 #  in the control items for a request.
620                 #
621                 peap {
622                         #  The tunneled EAP session needs a default
623                         #  EAP type which is separate from the one for
624                         #  the non-tunneled EAP module.  Inside of the
625                         #  PEAP tunnel, we recommend using MS-CHAPv2,
626                         #  as that is the default type supported by
627                         #  Windows clients.
628                         default_eap_type = mschapv2
629
630                         #  the PEAP module also has these configuration
631                         #  items, which are the same as for TTLS.
632                         copy_request_to_tunnel = no
633                         use_tunneled_reply = no
634
635                         #  When the tunneled session is proxied, the
636                         #  home server may not understand EAP-MSCHAP-V2.
637                         #  Set this entry to "no" to proxy the tunneled
638                         #  EAP-MSCHAP-V2 as normal MSCHAPv2.
639                 #       proxy_tunneled_request_as_eap = yes
640
641                         #
642                         #  The inner tunneled request can be sent
643                         #  through a virtual server constructed
644                         #  specifically for this purpose.
645                         #
646                         #  If this entry is commented out, the inner
647                         #  tunneled request will be sent through
648                         #  the virtual server that processed the
649                         #  outer requests.
650                         #
651                         virtual_server = "inner-tunnel"
652
653                         # This option enables support for MS-SoH
654                         # see doc/SoH.txt for more info.
655                         # It is disabled by default.
656                         #
657 #                       soh = yes
658
659                         #
660                         # The SoH reply will be turned into a request which
661                         # can be sent to a specific virtual server:
662                         #
663 #                       soh_virtual_server = "soh-server"
664                 }
665
666                 #
667                 #  This takes no configuration.
668                 #
669                 #  Note that it is the EAP MS-CHAPv2 sub-module, not
670                 #  the main 'mschap' module.
671                 #
672                 #  Note also that in order for this sub-module to work,
673                 #  the main 'mschap' module MUST ALSO be configured.
674                 #
675                 #  This module is the *Microsoft* implementation of MS-CHAPv2
676                 #  in EAP.  There is another (incompatible) implementation
677                 #  of MS-CHAPv2 in EAP by Cisco, which FreeRADIUS does not
678                 #  currently support.
679                 #
680                 mschapv2 {
681                         #  Prior to version 2.1.11, the module never
682                         #  sent the MS-CHAP-Error message to the
683                         #  client.  This worked, but it had issues
684                         #  when the cached password was wrong.  The
685                         #  server *should* send "E=691 R=0" to the
686                         #  client, which tells it to prompt the user
687                         #  for a new password.
688                         #
689                         #  The default is to behave as in 2.1.10 and
690                         #  earlier, which is known to work.  If you
691                         #  set "send_error = yes", then the error
692                         #  message will be sent back to the client.
693                         #  This *may* help some clients work better,
694                         #  but *may* also cause other clients to stop
695                         #  working.
696                         #
697 #                       send_error = no
698                 }
699         }