2 ## radiusd.conf -- FreeRADIUS server configuration file.
4 ## http://www.freeradius.org/
5 ## $Id: radiusd.conf,v 1.1 2008/03/31 13:54:59 faust Exp $
8 # The location of other config files and
9 # logfiles are declared in this file
11 # Also general configuration for modules can be done
12 # in this file, it is exported through the API to
13 # modules that ask for it.
15 # The configuration variables defined here are of the form ${foo}
16 # They are local to this file, and do not change from request to
19 # The per-request variables are of the form %{Attribute-Name}, and
20 # are taken from the values of the attribute in the incoming
21 # request. See 'doc/variables.txt' for more information.
27 sbindir = ${exec_prefix}/sbin
28 logdir = /var/log/freeradius
29 raddbdir = /etc/freeradius
30 radacctdir = ${logdir}/radacct
32 # Location of config and logfiles.
34 run_dir = ${localstatedir}/run/freeradius
37 # The logging messages for the server are appended to the
40 log_file = ${logdir}/radius.log
43 # libdir: Where to find the rlm_* modules.
45 # This should be automatically set at configuration time.
47 # If the server builds and installs, but fails at execution time
48 # with an 'undefined symbol' error, then you can use the libdir
49 # directive to work around the problem.
51 # The cause is usually that a library has been installed on your
52 # system in a place where the dynamic linker CANNOT find it. When
53 # executing as root (or another user), your personal environment MAY
54 # be set up to allow the dynamic linker to find the library. When
55 # executing as a daemon, FreeRADIUS MAY NOT have the same
56 # personalized configuration.
58 # To work around the problem, find out which library contains that symbol,
59 # and add the directory containing that library to the end of 'libdir',
60 # with a colon separating the directory names. NO spaces are allowed.
62 # e.g. libdir = /usr/local/lib:/opt/package/lib
64 # You can also try setting the LD_LIBRARY_PATH environment variable
65 # in a script which starts the server.
67 # If that does not work, then you can re-configure and re-build the
68 # server to NOT use shared libraries, via:
70 # ./configure --disable-shared
74 libdir = /usr/lib/freeradius
76 # pidfile: Where to place the PID of the RADIUS server.
78 # The server may be signalled while it's running by using this
81 # This file is written when ONLY running in daemon mode.
83 # e.g.: kill -HUP `cat /var/run/freeradius/freeradius.pid`
85 pidfile = ${run_dir}/freeradius.pid
88 # user/group: The name (or #number) of the user/group to run radiusd as.
90 # If these are commented out, the server will run as the user/group
91 # that started it. In order to change to a different user/group, you
92 # MUST be root ( or have root privleges ) to start the server.
94 # We STRONGLY recommend that you run the server with as few permissions
95 # as possible. That is, if you're not using shadow passwords, the
96 # user and group items below should be set to 'nobody'.
98 # On SCO (ODT 3) use "user = nouser" and "group = nogroup".
100 # NOTE that some kernels refuse to setgid(group) when the value of
101 # (unsigned)group is above 60000; don't use group nobody on these systems!
103 # On systems with shadow passwords, you might have to set 'group = shadow'
104 # for the server to be able to read the shadow password file. If you can
105 # authenticate users while in debug mode, but not in daemon mode, it may be
106 # that the debugging mode server is running as a user that can read the
107 # shadow info, and the user listed below can not.
112 # max_request_time: The maximum time (in seconds) to handle a request.
114 # Requests which take more time than this to process may be killed, and
115 # a REJECT message is returned.
117 # WARNING: If you notice that requests take a long time to be handled,
118 # then this MAY INDICATE a bug in the server, in one of the modules
119 # used to handle a request, OR in your local configuration.
121 # This problem is most often seen when using an SQL database. If it takes
122 # more than a second or two to receive an answer from the SQL database,
123 # then it probably means that you haven't indexed the database. See your
124 # SQL server documentation for more information.
126 # Useful range of values: 5 to 120
128 max_request_time = 30
130 # delete_blocked_requests: If the request takes MORE THAN 'max_request_time'
131 # to be handled, then maybe the server should delete it.
133 # If you're running in threaded, or thread pool mode, this setting
134 # should probably be 'no'. Setting it to 'yes' when using a threaded
135 # server MAY cause the server to crash!
137 delete_blocked_requests = no
139 # cleanup_delay: The time to wait (in seconds) before cleaning up
140 # a reply which was sent to the NAS.
142 # The RADIUS request is normally cached internally for a short period
143 # of time, after the reply is sent to the NAS. The reply packet may be
144 # lost in the network, and the NAS will not see it. The NAS will then
145 # re-send the request, and the server will respond quickly with the
148 # If this value is set too low, then duplicate requests from the NAS
149 # MAY NOT be detected, and will instead be handled as seperate requests.
151 # If this value is set too high, then the server will cache too many
152 # requests, and some new requests may get blocked. (See 'max_requests'.)
154 # Useful range of values: 2 to 10
158 # max_requests: The maximum number of requests which the server keeps
159 # track of. This should be 256 multiplied by the number of clients.
160 # e.g. With 4 clients, this number should be 1024.
162 # If this number is too low, then when the server becomes busy,
163 # it will not respond to any new requests, until the 'cleanup_delay'
164 # time has passed, and it has removed the old requests.
166 # If this number is set too high, then the server will use a bit more
167 # memory for no real benefit.
169 # If you aren't sure what it should be set to, it's better to set it
170 # too high than too low. Setting it to 1000 per client is probably
171 # the highest it should be.
173 # Useful range of values: 256 to infinity
177 # bind_address: Make the server listen on a particular IP address, and
178 # send replies out from that address. This directive is most useful
179 # for machines with multiple IP addresses on one interface.
181 # It can either contain "*", or an IP address, or a fully qualified
182 # Internet domain name. The default is "*"
184 # As of 1.0, you can also use the "listen" directive. See below for
189 # port: Allows you to bind FreeRADIUS to a specific port.
191 # The default port that most NAS boxes use is 1645, which is historical.
192 # RFC 2138 defines 1812 to be the new port. Many new servers and
193 # NAS boxes use 1812, which can create interoperability problems.
195 # The port is defined here to be 0 so that the server will pick up
196 # the machine's local configuration for the radius port, as defined
199 # If you want to use the default RADIUS port as defined on your server,
200 # (usually through 'grep radius /etc/services') set this to 0 (zero).
202 # A port given on the command-line via '-p' over-rides this one.
204 # As of 1.0, you can also use the "listen" directive. See below for
210 # By default, the server uses "bind_address" to listen to all IP's
211 # on a machine, or just one IP. The "port" configuration is used
212 # to select the authentication port used when listening on those
215 # If you want the server to listen on additional addresses, you can
216 # use the "listen" section. A sample section (commented out) is included
217 # below. This "listen" section duplicates the functionality of the
218 # "bind_address" and "port" configuration entries, but it only listens
219 # for authentication packets.
221 # If you comment out the "bind_address" and "port" configuration entries,
222 # then it becomes possible to make the server accept only accounting,
223 # or authentication packets. Previously, it always listened for both
224 # types of packets, and it was impossible to make it listen for only
225 # one type of packet.
228 # IP address on which to listen.
229 # Allowed values are:
230 # dotted quad (1.2.3.4)
231 # hostname (radius.example.com)
235 # Port on which to listen.
236 # Allowed values are:
237 # integer port number (1812)
238 # 0 means "use /etc/services for the proper port"
241 # Type of packets to listen for.
242 # Allowed values are:
243 # auth listen for authentication packets
244 # acct listen for accounting packets
250 # hostname_lookups: Log the names of clients or just their IP addresses
251 # e.g., www.freeradius.org (on) or 206.47.27.232 (off).
253 # The default is 'off' because it would be overall better for the net
254 # if people had to knowingly turn this feature on, since enabling it
255 # means that each client request will result in AT LEAST one lookup
256 # request to the nameserver. Enabling hostname_lookups will also
257 # mean that your server may stop randomly for 30 seconds from time
258 # to time, if the DNS requests take too long.
260 # Turning hostname lookups off also means that the server won't block
261 # for 30 seconds, if it sees an IP address which has no name associated
264 # allowed values: {no, yes}
266 hostname_lookups = no
268 # Core dumps are a bad thing. This should only be set to 'yes'
269 # if you're debugging a problem with the server.
271 # allowed values: {no, yes}
273 allow_core_dumps = no
275 # Regular expressions
277 # These items are set at configure time. If they're set to "yes",
278 # then setting them to "no" turns off regular expression support.
280 # If they're set to "no" at configure time, then setting them to "yes"
281 # WILL NOT WORK. It will give you an error.
283 regular_expressions = yes
284 extended_expressions = yes
286 # Log the full User-Name attribute, as it was found in the request.
288 # allowed values: {no, yes}
290 log_stripped_names = no
292 # Log authentication requests to the log file.
294 # allowed values: {no, yes}
298 # Log passwords with the authentication requests.
299 # log_auth_badpass - logs password if it's rejected
300 # log_auth_goodpass - logs password if it's correct
302 # allowed values: {no, yes}
304 log_auth_badpass = no
305 log_auth_goodpass = no
307 # usercollide: Turn "username collision" code on and off. See the
308 # "doc/duplicate-users" file
311 # !!!!!!! Setting this to "yes" may result in the server behaving
312 # !!!!!!! strangely. The "username collision" code will ONLY work
313 # !!!!!!! with clear-text passwords. Even then, it may not do what
314 # !!!!!!! you want, or what you expect.
316 # !!!!!!! We STRONGLY RECOMMEND that you do not use this feature,
317 # !!!!!!! and that you find another way of acheiving the same goal.
319 # !!!!!!! e,g. module fail-over. See 'doc/configurable_failover'
324 # lower_user / lower_pass:
325 # Lower case the username/password "before" or "after"
326 # attempting to authenticate.
328 # If "before", the server will first modify the request and then try
329 # to auth the user. If "after", the server will first auth using the
330 # values provided by the user. If that fails it will reprocess the
331 # request after modifying it as you specify below.
333 # This is as close as we can get to case insensitivity. It is the
334 # admin's job to ensure that the username on the auth db side is
335 # *also* lowercase to make this work
337 # Default is 'no' (don't lowercase values)
338 # Valid values = "before" / "after" / "no"
343 # nospace_user / nospace_pass:
345 # Some users like to enter spaces in their username or password
346 # incorrectly. To save yourself the tech support call, you can
347 # eliminate those spaces here:
349 # Default is 'no' (don't remove spaces)
350 # Valid values = "before" / "after" / "no" (explanation above)
355 # The program to execute to do concurrency checks.
356 checkrad = ${sbindir}/checkrad
358 # SECURITY CONFIGURATION
360 # There may be multiple methods of attacking on the server. This
361 # section holds the configuration items which minimize the impact
366 # max_attributes: The maximum number of attributes
367 # permitted in a RADIUS packet. Packets which have MORE
368 # than this number of attributes in them will be dropped.
370 # If this number is set too low, then no RADIUS packets
373 # If this number is set too high, then an attacker may be
374 # able to send a small number of packets which will cause
375 # the server to use all available memory on the machine.
377 # Setting this number to 0 means "allow any number of attributes"
381 # reject_delay: When sending an Access-Reject, it can be
382 # delayed for a few seconds. This may help slow down a DoS
383 # attack. It also helps to slow down people trying to brute-force
384 # crack a users password.
386 # Setting this number to 0 means "send rejects immediately"
388 # If this number is set higher than 'cleanup_delay', then the
389 # rejects will be sent at 'cleanup_delay' time, when the request
390 # is deleted from the internal cache of requests.
392 # Useful ranges: 1 to 5
396 # status_server: Whether or not the server will respond
397 # to Status-Server requests.
399 # Normally this should be set to "no", because they're useless.
400 # See: http://www.freeradius.org/rfc/rfc2865.html#Keep-Alives
402 # However, certain NAS boxes may require them.
404 # When sent a Status-Server message, the server responds with
405 # an Access-Accept packet, containing a Reply-Message attribute,
406 # which is a string describing how long the server has been
412 # PROXY CONFIGURATION
414 # proxy_requests: Turns proxying of RADIUS requests on or off.
416 # The server has proxying turned on by default. If your system is NOT
417 # set up to proxy requests to another server, then you can turn proxying
418 # off here. This will save a small amount of resources on the server.
420 # If you have proxying turned off, and your configuration files say
421 # to proxy a request, then an error message will be logged.
423 # To disable proxying, change the "yes" to "no", and comment the
426 # allowed values: {no, yes}
429 $INCLUDE ${confdir}/proxy.conf
432 # CLIENTS CONFIGURATION
434 # Client configuration is defined in "clients.conf".
437 # The 'clients.conf' file contains all of the information from the old
438 # 'clients' and 'naslist' configuration files. We recommend that you
439 # do NOT use 'client's or 'naslist', although they are still
442 # Anything listed in 'clients.conf' will take precedence over the
443 # information from the old-style configuration files.
445 $INCLUDE ${confdir}/clients.conf
450 # Snmp configuration is only valid if SNMP support was enabled
453 # To enable SNMP querying of the server, set the value of the
454 # 'snmp' attribute to 'yes'
457 $INCLUDE ${confdir}/snmp.conf
460 # THREAD POOL CONFIGURATION
462 # The thread pool is a long-lived group of threads which
463 # take turns (round-robin) handling any incoming requests.
465 # You probably want to have a few spare threads around,
466 # so that high-load situations can be handled immediately. If you
467 # don't have any spare threads, then the request handling will
468 # be delayed while a new thread is created, and added to the pool.
470 # You probably don't want too many spare threads around,
471 # otherwise they'll be sitting there taking up resources, and
472 # not doing anything productive.
474 # The numbers given below should be adequate for most situations.
477 # Number of servers to start initially --- should be a reasonable
481 # Limit on the total number of servers running.
483 # If this limit is ever reached, clients will be LOCKED OUT, so it
484 # should NOT BE SET TOO LOW. It is intended mainly as a brake to
485 # keep a runaway server from taking the system with it as it spirals
488 # You may find that the server is regularly reaching the
489 # 'max_servers' number of threads, and that increasing
490 # 'max_servers' doesn't seem to make much difference.
492 # If this is the case, then the problem is MOST LIKELY that
493 # your back-end databases are taking too long to respond, and
494 # are preventing the server from responding in a timely manner.
496 # The solution is NOT do keep increasing the 'max_servers'
497 # value, but instead to fix the underlying cause of the
498 # problem: slow database, or 'hostname_lookups=yes'.
500 # For more information, see 'max_request_time', above.
504 # Server-pool size regulation. Rather than making you guess
505 # how many servers you need, FreeRADIUS dynamically adapts to
506 # the load it sees, that is, it tries to maintain enough
507 # servers to handle the current load, plus a few spare
508 # servers to handle transient load spikes.
510 # It does this by periodically checking how many servers are
511 # waiting for a request. If there are fewer than
512 # min_spare_servers, it creates a new spare. If there are
513 # more than max_spare_servers, some of the spares die off.
514 # The default values are probably OK for most sites.
516 min_spare_servers = 3
517 max_spare_servers = 10
519 # There may be memory leaks or resource allocation problems with
520 # the server. If so, set this value to 300 or so, so that the
521 # resources will be cleaned up periodically.
523 # This should only be necessary if there are serious bugs in the
524 # server which have not yet been fixed.
526 # '0' is a special value meaning 'infinity', or 'the servers never
528 max_requests_per_server = 0
531 # MODULE CONFIGURATION
533 # The names and configuration of each module is located in this section.
535 # After the modules are defined here, they may be referred to by name,
536 # in other sections of this configuration file.
540 # Each module has a configuration as follows:
542 # name [ instance ] {
543 # config_item = value
547 # The 'name' is used to load the 'rlm_name' library
548 # which implements the functionality of the module.
550 # The 'instance' is optional. To have two different instances
551 # of a module, it first must be referred to by 'name'.
552 # The different copies of the module are then created by
553 # inventing two 'instance' names, e.g. 'instance1' and 'instance2'
555 # The instance names can then be used in later configuration
556 # INSTEAD of the original 'name'. See the 'radutmp' configuration
557 # below for an example.
560 # PAP module to authenticate users based on their stored password
562 # Supports multiple encryption schemes
565 # md5: MD5 ecnryption
566 # sha1: SHA1 encryption.
569 encryption_scheme = crypt
574 # To authenticate requests containing a CHAP-Password attribute.
580 # Extensible Authentication Protocol
582 # For all EAP related authentications.
583 # Now in another file, because it is very large.
585 $INCLUDE ${confdir}/eap.conf
587 # Microsoft CHAP authentication
589 # This module supports MS-CHAP and MS-CHAPv2 authentication.
590 # It also enforces the SMB-Account-Ctrl attribute.
594 # As of 0.9, the mschap module does NOT support
595 # reading from /etc/smbpasswd.
597 # If you are using /etc/smbpasswd, see the 'passwd'
598 # module for an example of how to use /etc/smbpasswd
600 # if use_mppe is not set to no mschap will
601 # add MS-CHAP-MPPE-Keys for MS-CHAPv1 and
602 # MS-MPPE-Recv-Key/MS-MPPE-Send-Key for MS-CHAPv2
607 # if mppe is enabled require_encryption makes
608 # encryption moderate
610 #require_encryption = yes
612 # require_strong always requires 128 bit key
615 #require_strong = yes
617 # Windows sends us a username in the form of
618 # DOMAIN\user, but sends the challenge response
619 # based on only the user portion. This hack
620 # corrects for that incorrect behavior.
622 #with_ntdomain_hack = no
624 # The module can perform authentication itself, OR
625 # use a Windows Domain Controller. This configuration
626 # directive tells the module to call the ntlm_auth
627 # program, which will do the authentication, and return
628 # the NT-Key. Note that you MUST have "winbindd" and
629 # "nmbd" running on the local machine for ntlm_auth
630 # to work. See the ntlm_auth program documentation
633 # Be VERY careful when editing the following line!
635 #ntlm_auth = "/path/to/ntlm_auth --request-nt-key --username=%{Stripped-User-Name:-%{User-Name:-None}} --challenge=%{mschap:Challenge:-00} --nt-response=%{mschap:NT-Response:-00}"
638 # Preprocess the incoming RADIUS request, before handing it off
641 # This module processes the 'huntgroups' and 'hints' files.
642 # In addition, it re-writes some weird attributes created
643 # by some NASes, and converts the attributes into a form which
644 # is a little more standard.
647 huntgroups = ${confdir}/huntgroups
648 hints = ${confdir}/hints
650 # This hack changes Ascend's wierd port numberings
651 # to standard 0-??? port numbers so that the "+" works
652 # for IP address assignments.
653 with_ascend_hack = no
654 ascend_channels_per_line = 23
656 # Windows NT machines often authenticate themselves as
659 # If this is set to 'yes', then the NT_DOMAIN portion
660 # of the user-name is silently discarded.
662 # This configuration entry SHOULD NOT be used.
663 # See the "realms" module for a better way to handle
665 with_ntdomain_hack = no
667 # Specialix Jetstream 8500 24 port access server.
669 # If the user name is 10 characters or longer, a "/"
670 # and the excess characters after the 10th are
671 # appended to the user name.
673 # If you're not running that NAS, you don't need
675 with_specialix_jetstream_hack = no
677 # Cisco (and Quintum in Cisco mode) sends it's VSA attributes
678 # with the attribute name *again* in the string, like:
680 # H323-Attribute = "h323-attribute=value".
682 # If this configuration item is set to 'yes', then
683 # the redundant data in the the attribute text is stripped
684 # out. The result is:
686 # H323-Attribute = "value"
688 # If you're not running a Cisco or Quintum NAS, you don't
690 with_cisco_vsa_hack = no
693 # Write a detailed log of all accounting records received.
696 # Note that we do NOT use NAS-IP-Address here, as
697 # that attribute MAY BE from the originating NAS, and
698 # NOT from the proxy which actually sent us the
699 # request. The Client-IP-Address attribute is ALWAYS
700 # the address of the client which sent us the
703 # The following line creates a new detail file for
704 # every radius client (by IP address or hostname).
705 # In addition, a new detail file is created every
706 # day, so that the detail file doesn't have to go
707 # through a 'log rotation'
709 # If your detail files are large, you may also want
710 # to add a ':%H' (see doc/variables.txt) to the end
711 # of it, to create a new detail file every hour, e.g.:
713 # ..../detail-%Y%m%d:%H
715 # This will create a new detail file for every hour.
717 detailfile = ${radacctdir}/%{Client-IP-Address}/detail-%Y%m%d
720 # The Unix-style permissions on the 'detail' file.
722 # The detail file often contains secret or private
723 # information about users. So by keeping the file
724 # permissions restrictive, we can prevent unwanted
725 # people from seeing that information.
729 # Certain attributes such as User-Password may be
730 # "sensitive", so they should not be printed in the
731 # detail file. This section lists the attributes
732 # that should be suppressed.
734 # The attributes should be listed one to a line.
742 # Create a unique accounting session Id. Many NASes re-use
743 # or repeat values for Acct-Session-Id, causing no end of
746 # This module will add a (probably) unique session id
747 # to an accounting packet based on the attributes listed
748 # below found in the packet. See doc/rlm_acct_unique for
752 key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, NAS-Port"
755 # Write a 'utmp' style file, of which users are currently
756 # logged in, and where they've logged in from.
758 # This file is used mainly for Simultaneous-Use checking,
759 # and also 'radwho', to see who's currently logged in.
762 # Where the file is stored. It's not a log file,
763 # so it doesn't need rotating.
765 filename = ${logdir}/radutmp
767 # The field in the packet to key on for the
768 # 'user' name, If you have other fields which you want
769 # to use to key on to control Simultaneous-Use,
770 # then you can use them here.
772 # Note, however, that the size of the field in the
773 # 'utmp' data structure is small, around 32
774 # characters, so that will limit the possible choices
777 # You may want instead: %{Stripped-User-Name:-%{User-Name}}
778 username = %{User-Name}
781 # Whether or not we want to treat "user" the same
782 # as "USER", or "User". Some systems have problems
783 # with case sensitivity, so this should be set to
784 # 'no' to enable the comparisons of the key attribute
785 # to be case insensitive.
789 # Accounting information may be lost, so the user MAY
790 # have logged off of the NAS, but we haven't noticed.
791 # If so, we can verify this information with the NAS,
793 # If we want to believe the 'utmp' file, then this
794 # configuration entry can be set to 'no'.
798 # Set the file permissions, as the contents of this file
799 # are usually private.
805 # "Safe" radutmp - does not contain caller ID, so it can be
806 # world-readable, and radwho can work for normal users, without
807 # exposing any information that isn't already exposed by who(1).
809 # This is another 'instance' of the radutmp module, but it is given
810 # then name "sradutmp" to identify it later in the "accounting"
813 filename = ${logdir}/sradutmp
818 # attr_filter - filters the attributes received in replies from
819 # proxied servers, to make sure we send back to our RADIUS client
820 # only allowed attributes.
822 attrsfile = ${confdir}/attrs
826 # This module takes an attribute (count-attribute).
827 # It also takes a key, and creates a counter for each unique
828 # key. The count is incremented when accounting packets are
829 # received by the server. The value of the increment depends
830 # on the attribute type.
831 # If the attribute is Acct-Session-Time or of an integer type we add the
832 # value of the attribute. If it is anything else we increase the
835 # The 'reset' parameter defines when the counters are all reset to
836 # zero. It can be hourly, daily, weekly, monthly or never.
838 # hourly: Reset on 00:00 of every hour
839 # daily: Reset on 00:00:00 every day
840 # weekly: Reset on 00:00:00 on sunday
841 # monthly: Reset on 00:00:00 of the first day of each month
843 # It can also be user defined. It should be of the form:
845 # h: hours, d: days, w: weeks, m: months
846 # If the letter is ommited days will be assumed. In example:
847 # reset = 10h (reset every 10 hours)
848 # reset = 12 (reset every 12 days)
851 # The check-name attribute defines an attribute which will be
852 # registered by the counter module and can be used to set the
853 # maximum allowed value for the counter after which the user
857 # DEFAULT Max-Daily-Session := 36000
860 # You should add the counter module in the instantiate
861 # section so that it registers check-name before the files
862 # module reads the users file.
864 # If check-name is set and the user is to be rejected then we
865 # send back a Reply-Message and we log a Failure-Message in
867 # If the count attribute is Acct-Session-Time then on each login
868 # we send back the remaining online time as a Session-Timeout attribute
870 # The counter-name can also be used instead of using the check-name
873 # DEFAULT Daily-Session-Time > 3600, Auth-Type = Reject
874 # Reply-Message = "You've used up more than one hour today"
876 # The allowed-servicetype attribute can be used to only take
877 # into account specific sessions. For example if a user first
878 # logs in through a login menu and then selects ppp there will
879 # be two sessions. One for Login-User and one for Framed-User
880 # service type. We only need to take into account the second one.
882 # The module should be added in the instantiate, authorize and
883 # accounting sections. Make sure that in the authorize
884 # section it comes after any module which sets the
885 # 'check-name' attribute.
888 filename = ${raddbdir}/db.daily
890 count-attribute = Acct-Session-Time
892 counter-name = Daily-Session-Time
893 check-name = Max-Daily-Session
894 allowed-servicetype = Framed-User
899 # The "always" module is here for debugging purposes. Each
900 # instance simply returns the same result, always, without
925 # This section orders the loading of the modules. Modules
926 # listed here will get loaded BEFORE the later sections like
927 # authorize, authenticate, etc. get examined.
929 # This section is not strictly needed. When a section like
930 # authorize refers to a module, it's automatically loaded and
931 # initialized. However, some modules may not be listed in any
932 # of the following sections, so they can be listed here.
934 # Also, listing modules here ensures that you have control over
935 # the order in which they are initalized. If one module needs
936 # something defined by another module, you can list them in order
937 # here, and ensure that the configuration will be OK.
943 # Authorization. First preprocess (hints and huntgroups files),
944 # then realms, and finally look in the "users" file.
946 # The order of the realm modules will determine the order that
947 # we try to find a matching realm.
949 # Make *sure* that 'preprocess' comes before any realm if you
950 # need to setup hints for the remote radius server
953 # The preprocess module takes care of sanitizing some bizarre
954 # attributes in the request, and turning them into attributes
955 # which are more standard.
957 # It takes care of processing the 'raddb/hints' and the
958 # 'raddb/huntgroups' files.
960 # It also adds the %{Client-IP-Address} attribute to the request.
964 # The chap module will set 'Auth-Type := CHAP' if we are
965 # handling a CHAP request and Auth-Type has not already been set
969 # If the users are logging in with an MS-CHAP-Challenge
970 # attribute for authentication, the mschap module will find
971 # the MS-CHAP-Challenge attribute, and add 'Auth-Type := MS-CHAP'
972 # to the request, which will cause the server to then use
973 # the mschap module for authentication.
977 # This module takes care of EAP-MD5, EAP-TLS, and EAP-LEAP
980 # It also sets the EAP-Type attribute in the request
981 # attribute list to the EAP type from the packet.
991 # This section lists which modules are available for authentication.
992 # Note that it does NOT mean 'try each module in order'. It means
993 # that a module from the 'authorize' section adds a configuration
994 # attribute 'Auth-Type := FOO'. That authentication type is then
995 # used to pick the apropriate module from the list below.
998 # In general, you SHOULD NOT set the Auth-Type attribute. The server
999 # will figure it out on its own, and will do the right thing. The
1000 # most common side effect of erroneously setting the Auth-Type
1001 # attribute is that one authentication method will work, but the
1004 # The common reasons to set the Auth-Type attribute by hand
1005 # is to either forcibly reject the user, or forcibly accept him.
1009 # PAP authentication, when a back-end database listed
1010 # in the 'authorize' section supplies a password. The
1011 # password can be clear-text, or encrypted.
1018 # Most people want CHAP authentication
1019 # A back-end database listed in the 'authorize' section
1020 # MUST supply a CLEAR TEXT password. Encrypted passwords
1028 # MSCHAP authentication.
1035 # Allow EAP authentication.
1041 # Pre-accounting. Decide which accounting type to use.
1047 # Ensure that we have a semi-unique identifier for every
1048 # request, and many NAS boxes are broken.
1053 # Accounting. Log the accounting data.
1057 # Create a 'detail'ed log of the packets.
1058 # Note that accounting requests which are proxied
1059 # are also logged in the detail file.
1064 # For Simultaneous-Use tracking.
1066 # Due to packet losses in the network, the data here
1067 # may be incorrect. There is little we can do about it.
1075 # Session database, used for checking Simultaneous-Use. Either the radutmp
1076 # or rlm_sql module can handle this.
1077 # The rlm_sql module is *much* faster
1083 # Post-Authentication
1084 # Once we KNOW that the user has been authenticated, there are
1085 # additional steps we can take.
1091 # When the server decides to proxy a request to a home server,
1092 # the proxied request is first passed through the pre-proxy
1093 # stage. This stage can re-write the request, or decide to
1096 # Only a few modules currently have this method.
1102 # When the server receives a reply to a request it proxied
1103 # to a home server, the request may be massaged here, in the
1108 # If you are proxying LEAP, you MUST configure the EAP
1109 # module, and you MUST list it here, in the post-proxy
1112 # You MUST also use the 'nostrip' option in the 'realm'
1113 # configuration. Otherwise, the User-Name attribute
1114 # in the proxied request will not match the user name
1115 # hidden inside of the EAP packet, and the end server will
1116 # reject the EAP request.