2 ## radiusd.conf -- FreeRADIUS server configuration file.
4 ## http://www.freeradius.org/
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.
24 exec_prefix = @exec_prefix@
25 sysconfdir = @sysconfdir@
26 localstatedir = @localstatedir@
30 radacctdir = @radacctdir@
32 # Location of config and logfiles.
34 run_dir = ${localstatedir}/run/radiusd
37 # The logging messages for the server are appended to the
40 log_file = ${logdir}/radius.log
43 # Destination for log messages. This can be one of:
45 # files - log to ${log_file}, as defined above.
46 # syslog - to syslog (see also the log{} section, below)
47 # stdout - standard output
48 # stderr - standard error.
50 # The command-line option "-X" over-rides this option, and forces
51 # logging to go to stdout.
53 log_destination = files
56 # libdir: Where to find the rlm_* modules.
58 # This should be automatically set at configuration time.
60 # If the server builds and installs, but fails at execution time
61 # with an 'undefined symbol' error, then you can use the libdir
62 # directive to work around the problem.
64 # The cause is usually that a library has been installed on your
65 # system in a place where the dynamic linker CANNOT find it. When
66 # executing as root (or another user), your personal environment MAY
67 # be set up to allow the dynamic linker to find the library. When
68 # executing as a daemon, FreeRADIUS MAY NOT have the same
69 # personalized configuration.
71 # To work around the problem, find out which library contains that symbol,
72 # and add the directory containing that library to the end of 'libdir',
73 # with a colon separating the directory names. NO spaces are allowed.
75 # e.g. libdir = /usr/local/lib:/opt/package/lib
77 # You can also try setting the LD_LIBRARY_PATH environment variable
78 # in a script which starts the server.
80 # If that does not work, then you can re-configure and re-build the
81 # server to NOT use shared libraries, via:
83 # ./configure --disable-shared
89 # pidfile: Where to place the PID of the RADIUS server.
91 # The server may be signalled while it's running by using this
94 # This file is written when ONLY running in daemon mode.
96 # e.g.: kill -HUP `cat /var/run/radiusd/radiusd.pid`
98 pidfile = ${run_dir}/radiusd.pid
101 # user/group: The name (or #number) of the user/group to run radiusd as.
103 # If these are commented out, the server will run as the user/group
104 # that started it. In order to change to a different user/group, you
105 # MUST be root ( or have root privleges ) to start the server.
107 # We STRONGLY recommend that you run the server with as few permissions
108 # as possible. That is, if you're not using shadow passwords, the
109 # user and group items below should be set to 'nobody'.
111 # On SCO (ODT 3) use "user = nouser" and "group = nogroup".
113 # NOTE that some kernels refuse to setgid(group) when the value of
114 # (unsigned)group is above 60000; don't use group nobody on these systems!
116 # On systems with shadow passwords, you might have to set 'group = shadow'
117 # for the server to be able to read the shadow password file. If you can
118 # authenticate users while in debug mode, but not in daemon mode, it may be
119 # that the debugging mode server is running as a user that can read the
120 # shadow info, and the user listed below can not.
125 # max_request_time: The maximum time (in seconds) to handle a request.
127 # Requests which take more time than this to process may be killed, and
128 # a REJECT message is returned.
130 # WARNING: If you notice that requests take a long time to be handled,
131 # then this MAY INDICATE a bug in the server, in one of the modules
132 # used to handle a request, OR in your local configuration.
134 # This problem is most often seen when using an SQL database. If it takes
135 # more than a second or two to receive an answer from the SQL database,
136 # then it probably means that you haven't indexed the database. See your
137 # SQL server documentation for more information.
139 # Useful range of values: 5 to 120
141 max_request_time = 30
143 # delete_blocked_requests: If the request takes MORE THAN 'max_request_time'
144 # to be handled, then maybe the server should delete it.
146 # If you're running in threaded, or thread pool mode, this setting
147 # should probably be 'no'. Setting it to 'yes' when using a threaded
148 # server MAY cause the server to crash!
150 delete_blocked_requests = no
152 # cleanup_delay: The time to wait (in seconds) before cleaning up
153 # a reply which was sent to the NAS.
155 # The RADIUS request is normally cached internally for a short period
156 # of time, after the reply is sent to the NAS. The reply packet may be
157 # lost in the network, and the NAS will not see it. The NAS will then
158 # re-send the request, and the server will respond quickly with the
161 # If this value is set too low, then duplicate requests from the NAS
162 # MAY NOT be detected, and will instead be handled as seperate requests.
164 # If this value is set too high, then the server will cache too many
165 # requests, and some new requests may get blocked. (See 'max_requests'.)
167 # Useful range of values: 2 to 10
171 # max_requests: The maximum number of requests which the server keeps
172 # track of. This should be 256 multiplied by the number of clients.
173 # e.g. With 4 clients, this number should be 1024.
175 # If this number is too low, then when the server becomes busy,
176 # it will not respond to any new requests, until the 'cleanup_delay'
177 # time has passed, and it has removed the old requests.
179 # If this number is set too high, then the server will use a bit more
180 # memory for no real benefit.
182 # If you aren't sure what it should be set to, it's better to set it
183 # too high than too low. Setting it to 1000 per client is probably
184 # the highest it should be.
186 # Useful range of values: 256 to infinity
190 # listen: Make the server listen on a particular IP address, and send
191 # replies out from that address. This directive is most useful for
192 # hosts with multiple IP addresses on one interface.
194 # If you want the server to listen on additional addresses, or on
195 # additionnal ports, you can use multiple "listen" sections.
197 # Each section make the server listen for only one type of packet,
198 # therefore authentication and accounting have to be configured in
199 # different sections.
201 # The server ignore all "listen" section if you are using '-i' and '-p'
202 # on the command line.
205 # IP address on which to listen.
206 # Allowed values are:
207 # dotted quad (1.2.3.4)
208 # hostname (radius.example.com)
212 # OR, you can use an IPv6 address, but not both
214 # ipv6addr = :: # any. ::1 == localhost
216 # Port on which to listen.
217 # Allowed values are:
218 # integer port number (1812)
219 # 0 means "use /etc/services for the proper port"
222 # Type of packets to listen for.
223 # Allowed values are:
224 # auth listen for authentication packets
225 # acct listen for accounting packets
229 # Some systems support binding to an interface, in addition
230 # to the IP address. This feature isn't strictly necessary,
231 # but for sites with many IP addresses on one interface,
232 # it's useful to say "listen on all addresses for eth0".
234 # If your system does not support this feature, you will
235 # get an error if you try to use it.
239 # Per-socket lists of clients. This is a very useful feature.
241 # The name here is a reference to a section elsewhere in
242 # radiusd.conf, or clients.conf. Having the name as
243 # a reference allows multiple sockets to use the same
246 # If this configuration is used, then the global list of clients
247 # is IGNORED for this "listen" section. Take care configuring
248 # this feature, to ensure you don't accidentally disable a
251 # See clients.conf for the configuration of "per_socket_clients".
253 # clients = per_socket_clients
256 # This second "listen" section is for listening on the accounting
265 # clients = per_socket_clients
268 # hostname_lookups: Log the names of clients or just their IP addresses
269 # e.g., www.freeradius.org (on) or 206.47.27.232 (off).
271 # The default is 'off' because it would be overall better for the net
272 # if people had to knowingly turn this feature on, since enabling it
273 # means that each client request will result in AT LEAST one lookup
274 # request to the nameserver. Enabling hostname_lookups will also
275 # mean that your server may stop randomly for 30 seconds from time
276 # to time, if the DNS requests take too long.
278 # Turning hostname lookups off also means that the server won't block
279 # for 30 seconds, if it sees an IP address which has no name associated
282 # allowed values: {no, yes}
284 hostname_lookups = no
286 # Core dumps are a bad thing. This should only be set to 'yes'
287 # if you're debugging a problem with the server.
289 # allowed values: {no, yes}
291 allow_core_dumps = no
293 # Regular expressions
295 # These items are set at configure time. If they're set to "yes",
296 # then setting them to "no" turns off regular expression support.
298 # If they're set to "no" at configure time, then setting them to "yes"
299 # WILL NOT WORK. It will give you an error.
301 regular_expressions = @REGEX@
302 extended_expressions = @REGEX_EXTENDED@
305 # Logging section. The various "log_*" configuration items
306 # will eventually be moved here.
310 # Which syslog facility to use, if ${log_destination} == "syslog"
312 # The exact values permitted here are OS-dependent. You probably
313 # don't want to change this.
315 syslog_facility = daemon
318 # Log the full User-Name attribute, as it was found in the request.
320 # allowed values: {no, yes}
322 log_stripped_names = no
324 # Log authentication requests to the log file.
326 # allowed values: {no, yes}
330 # Log passwords with the authentication requests.
331 # log_auth_badpass - logs password if it's rejected
332 # log_auth_goodpass - logs password if it's correct
334 # allowed values: {no, yes}
336 log_auth_badpass = no
337 log_auth_goodpass = no
339 # The program to execute to do concurrency checks.
340 checkrad = ${sbindir}/checkrad
342 # SECURITY CONFIGURATION
344 # There may be multiple methods of attacking on the server. This
345 # section holds the configuration items which minimize the impact
350 # max_attributes: The maximum number of attributes
351 # permitted in a RADIUS packet. Packets which have MORE
352 # than this number of attributes in them will be dropped.
354 # If this number is set too low, then no RADIUS packets
357 # If this number is set too high, then an attacker may be
358 # able to send a small number of packets which will cause
359 # the server to use all available memory on the machine.
361 # Setting this number to 0 means "allow any number of attributes"
365 # delayed_reject: When sending an Access-Reject, it can be
366 # delayed for a few seconds. This may help slow down a DoS
367 # attack. It also helps to slow down people trying to brute-force
368 # crack a users password.
370 # Setting this number to 0 means "send rejects immediately"
372 # If this number is set higher than 'cleanup_delay', then the
373 # rejects will be sent at 'cleanup_delay' time, when the request
374 # is deleted from the internal cache of requests.
376 # Useful ranges: 1 to 5
380 # status_server: Whether or not the server will respond
381 # to Status-Server requests.
383 # Normally this should be set to "no", because they're useless.
384 # See: http://www.freeradius.org/rfc/rfc2865.html#Keep-Alives
386 # However, certain NAS boxes may require them.
388 # When sent a Status-Server message, the server responds with
389 # an Access-Accept packet, containing a Reply-Message attribute,
390 # which is a string describing how long the server has been
396 # PROXY CONFIGURATION
398 # proxy_requests: Turns proxying of RADIUS requests on or off.
400 # The server has proxying turned on by default. If your system is NOT
401 # set up to proxy requests to another server, then you can turn proxying
402 # off here. This will save a small amount of resources on the server.
404 # If you have proxying turned off, and your configuration files say
405 # to proxy a request, then an error message will be logged.
407 # To disable proxying, change the "yes" to "no", and comment the
410 # allowed values: {no, yes}
413 $INCLUDE ${confdir}/proxy.conf
416 # CLIENTS CONFIGURATION
418 # Client configuration is defined in "clients.conf".
421 # The 'clients.conf' file contains all of the information from the old
422 # 'clients' and 'naslist' configuration files. We recommend that you
423 # do NOT use 'client's or 'naslist', although they are still
426 # Anything listed in 'clients.conf' will take precedence over the
427 # information from the old-style configuration files.
429 $INCLUDE ${confdir}/clients.conf
434 # Snmp configuration is only valid if SNMP support was enabled
437 # To enable SNMP querying of the server, set the value of the
438 # 'snmp' attribute to 'yes'
441 $INCLUDE ${confdir}/snmp.conf
444 # THREAD POOL CONFIGURATION
446 # The thread pool is a long-lived group of threads which
447 # take turns (round-robin) handling any incoming requests.
449 # You probably want to have a few spare threads around,
450 # so that high-load situations can be handled immediately. If you
451 # don't have any spare threads, then the request handling will
452 # be delayed while a new thread is created, and added to the pool.
454 # You probably don't want too many spare threads around,
455 # otherwise they'll be sitting there taking up resources, and
456 # not doing anything productive.
458 # The numbers given below should be adequate for most situations.
461 # Number of servers to start initially --- should be a reasonable
465 # Limit on the total number of servers running.
467 # If this limit is ever reached, clients will be LOCKED OUT, so it
468 # should NOT BE SET TOO LOW. It is intended mainly as a brake to
469 # keep a runaway server from taking the system with it as it spirals
472 # You may find that the server is regularly reaching the
473 # 'max_servers' number of threads, and that increasing
474 # 'max_servers' doesn't seem to make much difference.
476 # If this is the case, then the problem is MOST LIKELY that
477 # your back-end databases are taking too long to respond, and
478 # are preventing the server from responding in a timely manner.
480 # The solution is NOT do keep increasing the 'max_servers'
481 # value, but instead to fix the underlying cause of the
482 # problem: slow database, or 'hostname_lookups=yes'.
484 # For more information, see 'max_request_time', above.
488 # Server-pool size regulation. Rather than making you guess
489 # how many servers you need, FreeRADIUS dynamically adapts to
490 # the load it sees, that is, it tries to maintain enough
491 # servers to handle the current load, plus a few spare
492 # servers to handle transient load spikes.
494 # It does this by periodically checking how many servers are
495 # waiting for a request. If there are fewer than
496 # min_spare_servers, it creates a new spare. If there are
497 # more than max_spare_servers, some of the spares die off.
498 # The default values are probably OK for most sites.
500 min_spare_servers = 3
501 max_spare_servers = 10
503 # There may be memory leaks or resource allocation problems with
504 # the server. If so, set this value to 300 or so, so that the
505 # resources will be cleaned up periodically.
507 # This should only be necessary if there are serious bugs in the
508 # server which have not yet been fixed.
510 # '0' is a special value meaning 'infinity', or 'the servers never
512 max_requests_per_server = 0
515 # MODULE CONFIGURATION
517 # The names and configuration of each module is located in this section.
519 # After the modules are defined here, they may be referred to by name,
520 # in other sections of this configuration file.
524 # Each module has a configuration as follows:
526 # name [ instance ] {
527 # config_item = value
531 # The 'name' is used to load the 'rlm_name' library
532 # which implements the functionality of the module.
534 # The 'instance' is optional. To have two different instances
535 # of a module, it first must be referred to by 'name'.
536 # The different copies of the module are then created by
537 # inventing two 'instance' names, e.g. 'instance1' and 'instance2'
539 # The instance names can then be used in later configuration
540 # INSTEAD of the original 'name'. See the 'radutmp' configuration
541 # below for an example.
544 # PAP module to authenticate users based on their stored password
546 # Supports multiple encryption/hash schemes. See "man passwd"
549 # The "auto_header" configuration item can be set to "yes".
550 # In this case, the module will look inside of the User-Password
551 # attribute for the headers {crypt}, {clear}, etc., and will
552 # automatically create the attribute on the right-hand side,
553 # with the correct value. It will also automatically handle
554 # Base-64 encoded data, hex strings, and binary data.
561 # To authenticate requests containing a CHAP-Password attribute.
567 # Pluggable Authentication Modules
570 # http://www.kernel.org/pub/linux/libs/pam/index.html
572 # WARNING: On many systems, the system PAM libraries have
573 # memory leaks! We STRONGLY SUGGEST that you do not
574 # use PAM for authentication, due to those memory leaks.
578 # The name to use for PAM authentication.
579 # PAM looks in /etc/pam.d/${pam_auth_name}
580 # for it's configuration. See 'redhat/radiusd-pam'
581 # for a sample PAM configuration file.
583 # Note that any Pam-Auth attribute set in the 'authorize'
584 # section will over-ride this one.
589 # Unix /etc/passwd style authentication
592 # As of 1.1.0, the Unix module no longer reads,
593 # or caches /etc/passwd, /etc/shadow, or /etc/group.
594 # If you wish to cache those files, see the passwd
599 # The location of the "wtmp" file.
600 # This should be moved to it's own module soon.
602 # The only use for 'radlast'. If you don't use
603 # 'radlast', then you can comment out this item.
605 radwtmp = ${logdir}/radwtmp
608 # Extensible Authentication Protocol
610 # For all EAP related authentications.
611 # Now in another file, because it is very large.
613 $INCLUDE ${confdir}/eap.conf
615 # Microsoft CHAP authentication
617 # This module supports MS-CHAP and MS-CHAPv2 authentication.
618 # It also enforces the SMB-Account-Ctrl attribute.
622 # As of 0.9, the mschap module does NOT support
623 # reading from /etc/smbpasswd.
625 # If you are using /etc/smbpasswd, see the 'passwd'
626 # module for an example of how to use /etc/smbpasswd
628 # authtype value, if present, will be used
629 # to overwrite (or add) Auth-Type during
630 # authorization. Normally should be MS-CHAP
633 # if use_mppe is not set to no mschap will
634 # add MS-CHAP-MPPE-Keys for MS-CHAPv1 and
635 # MS-MPPE-Recv-Key/MS-MPPE-Send-Key for MS-CHAPv2
639 # if mppe is enabled require_encryption makes
640 # encryption moderate
642 #require_encryption = yes
644 # require_strong always requires 128 bit key
647 #require_strong = yes
649 # Windows sends us a username in the form of
650 # DOMAIN\user, but sends the challenge response
651 # based on only the user portion. This hack
652 # corrects for that incorrect behavior.
654 #with_ntdomain_hack = no
656 # The module can perform authentication itself, OR
657 # use a Windows Domain Controller. This configuration
658 # directive tells the module to call the ntlm_auth
659 # program, which will do the authentication, and return
660 # the NT-Key. Note that you MUST have "winbindd" and
661 # "nmbd" running on the local machine for ntlm_auth
662 # to work. See the ntlm_auth program documentation
665 # Be VERY careful when editing the following line!
667 #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}"
670 # Lightweight Directory Access Protocol (LDAP)
672 # This module definition allows you to use LDAP for
673 # authorization and authentication (Auth-Type := LDAP)
675 # See doc/rlm_ldap for description of configuration options
676 # and sample authorize{} and authenticate{} blocks
678 server = "ldap.your.domain"
679 #identity = "cn=admin,o=My Org,c=UA"
681 basedn = "o=My Org,c=UA"
682 filter = "(uid=%{Stripped-User-Name:-%{User-Name}})"
683 #base_filter = "(objectclass=radiusprofile)"
685 # How many connections to keep open to the LDAP server.
686 # This saves time over opening a new LDAP socket for
687 # every authentication request.
688 ldap_connections_number = 5
695 # This subsection configures the tls related items
696 # that control how FreeRADIUS connects to an LDAP
697 # server. It contains all of the "tls_*" configuration
698 # entries used in older versions of FreeRADIUS. Those
699 # configuration entries can still be used, but we recommend
703 # Set this to 'yes' to use TLS encrypted connections
704 # to the LDAP database by using the StartTLS extended
707 # The StartTLS operation is supposed to be
708 # used with normal ldap connections instead of
709 # using ldaps (port 689) connections
712 # cacertfile = /path/to/cacert.pem
713 # cacertdir = /path/to/ca/dir/
714 # certfile = /path/to/radius.crt
715 # keyfile = /path/to/radius.key
716 # randfile = /path/to/rnd
717 # require_cert = "demand"
720 # default_profile = "cn=radprofile,ou=dialup,o=My Org,c=UA"
721 # profile_attribute = "radiusProfileDn"
722 # access_attr = "dialupAccess"
724 # Mapping of RADIUS dictionary attributes to LDAP
725 # directory attributes.
726 dictionary_mapping = ${raddbdir}/ldap.attrmap
728 # Set password_attribute = nspmPassword to get the
729 # user's password from a Novell eDirectory
730 # backend. This will work ONLY IF FreeRADIUS has been
731 # built with the --with-edir configure option.
733 # password_attribute = userPassword
735 # As of 1.1.0, the LDAP module will auto-discover
736 # the password headers (which are non-standard).
737 # It will use the following table to map passwords
738 # to RADIUS attributes. The PAP module (see above)
739 # can then automatically determine the hashing
740 # method to use to authenticate the user.
744 # {clear} User-Password
745 # {cleartext} User-Password
747 # {smd5} SMD5-Password
748 # {crypt} Crypt-Password
750 # {ssha} SSHA-Password
752 # {ns-mta-md5} NS-MTA-MD5-Password
755 # The headers are compared in a case-insensitive manner.
756 # The format of the password in LDAP (base 64-encoded, hex,
757 # clear-text, whatever) is not that important. The PAP
758 # module will figure it out.
760 # The default for "auto_header" is "no", to enable backwards
761 # compatibility with the "password_header" directive,
762 # which is now deprecated. If this is set to "yes",
763 # then the above table will be used, and the
764 # "password_header" directive will be ignored.
768 # Un-comment the following to disable Novell
769 # eDirectory account policy check and intruder
770 # detection. This will work *only if* FreeRADIUS is
771 # configured to build with --with-edir option.
773 #edir_account_policy_check = no
776 # Group membership checking. Disabled by default.
778 # groupname_attribute = cn
779 # groupmembership_filter = "(|(&(objectClass=GroupOfNames)(member=%{Ldap-UserDn}))(&(objectClass=GroupOfUniqueNames)(uniquemember=%{Ldap-UserDn})))"
780 # groupmembership_attribute = radiusGroupName
782 # compare_check_items = yes
784 # access_attr_used_for_allow = yes
787 # passwd module allows to do authorization via any passwd-like
788 # file and to extract any attributes from these modules
791 # filename - path to filename
792 # format - format for filename record. This parameters
793 # correlates record in the passwd file and RADIUS
796 # Field marked as '*' is key field. That is, the parameter
797 # with this name from the request is used to search for
798 # the record from passwd file
799 # Attribute marked as '=' is added to reply_itmes instead
800 # of default configure_itmes
801 # Attribute marked as '~' is added to request_items
803 # Field marked as ',' may contain a comma separated list
805 # hashsize - hashtable size. If 0 or not specified records are not
806 # stored in memory and file is red on every request.
807 # allowmultiplekeys - if few records for every key are allowed
808 # ignorenislike - ignore NIS-related records
809 # delimiter - symbol to use as a field separator in passwd file,
810 # for format ':' symbol is always used. '\0', '\n' are
814 # An example configuration for using /etc/smbpasswd.
816 #passwd etc_smbpasswd {
817 # filename = /etc/smbpasswd
818 # format = "*User-Name::LM-Password:NT-Password:SMB-Account-CTRL-TEXT::"
821 # allowmultiplekeys = no
824 # Similar configuration, for the /etc/group file. Adds a Group-Name
825 # attribute for every group that the user is member of.
828 # filename = /etc/group
829 # format = "=Group-Name:::*,User-Name"
831 # ignorenislike = yes
832 # allowmultiplekeys = yes
836 # Realm module, for proxying.
838 # You can have multiple instances of the realm module to
839 # support multiple realm syntaxs at the same time. The
840 # search order is defined by the order in the authorize and
843 # Four config options:
844 # format - must be "prefix" or "suffix"
845 # The special cases of "DEFAULT"
846 # and "NULL" are allowed, too.
847 # delimiter - must be a single character
851 # Using this entry, IPASS users have their realm set to "IPASS".
879 # A simple value checking module
881 # It can be used to check if an attribute value in the request
882 # matches a (possibly multi valued) attribute in the check
883 # items This can be used for example for caller-id
884 # authentication. For the module to run, both the request
885 # attribute and the check items attribute must exist
888 # A user has an ldap entry with 2 radiusCallingStationId
889 # attributes with values "12345678" and "12345679". If we
890 # enable rlm_checkval, then any request which contains a
891 # Calling-Station-Id with one of those two values will be
892 # accepted. Requests with other values for
893 # Calling-Station-Id will be rejected.
895 # Regular expressions in the check attribute value are allowed
896 # as long as the operator is '=~'
899 # The attribute to look for in the request
900 item-name = Calling-Station-Id
902 # The attribute to look for in check items. Can be multi valued
903 check-name = Calling-Station-Id
905 # The data type. Can be
906 # string,integer,ipaddr,date,abinary,octets
909 # If set to yes and we dont find the item-name attribute in the
910 # request then we send back a reject
912 #notfound-reject = no
915 # rewrite arbitrary packets. Useful in accounting and authorization.
918 # The module can also use the Rewrite-Rule attribute. If it
919 # is set and matches the name of the module instance, then
920 # that module instance will be the only one which runs.
922 # Also if new_attribute is set to yes then a new attribute
923 # will be created containing the value replacewith and it
924 # will be added to searchin (packet, reply, proxy, proxy_reply or config).
925 # searchfor,ignore_case and max_matches will be ignored in that case.
927 # Backreferences are supported: %{0} will contain the string the whole match
928 # and %{1} to %{8} will contain the contents of the 1st to the 8th parentheses
930 # If max_matches is greater than one the backreferences will correspond to the
934 #attr_rewrite sanecallerid {
935 # attribute = Called-Station-Id
936 # may be "packet", "reply", "proxy", "proxy_reply" or "config"
943 # ## If set to yes then the replace string will be appended to the original string
947 # Preprocess the incoming RADIUS request, before handing it off
950 # This module processes the 'huntgroups' and 'hints' files.
951 # In addition, it re-writes some weird attributes created
952 # by some NASes, and converts the attributes into a form which
953 # is a little more standard.
956 huntgroups = ${confdir}/huntgroups
957 hints = ${confdir}/hints
959 # This hack changes Ascend's wierd port numberings
960 # to standard 0-??? port numbers so that the "+" works
961 # for IP address assignments.
962 with_ascend_hack = no
963 ascend_channels_per_line = 23
965 # Windows NT machines often authenticate themselves as
968 # If this is set to 'yes', then the NT_DOMAIN portion
969 # of the user-name is silently discarded.
971 # This configuration entry SHOULD NOT be used.
972 # See the "realms" module for a better way to handle
974 with_ntdomain_hack = no
976 # Specialix Jetstream 8500 24 port access server.
978 # If the user name is 10 characters or longer, a "/"
979 # and the excess characters after the 10th are
980 # appended to the user name.
982 # If you're not running that NAS, you don't need
984 with_specialix_jetstream_hack = no
986 # Cisco (and Quintum in Cisco mode) sends it's VSA attributes
987 # with the attribute name *again* in the string, like:
989 # H323-Attribute = "h323-attribute=value".
991 # If this configuration item is set to 'yes', then
992 # the redundant data in the the attribute text is stripped
993 # out. The result is:
995 # H323-Attribute = "value"
997 # If you're not running a Cisco or Quintum NAS, you don't
999 with_cisco_vsa_hack = no
1002 # Livingston-style 'users' file
1005 usersfile = ${confdir}/users
1006 acctusersfile = ${confdir}/acct_users
1007 preproxy_usersfile = ${confdir}/preproxy_users
1009 # If you want to use the old Cistron 'users' file
1010 # with FreeRADIUS, you should change the next line
1011 # to 'compat = cistron'. You can the copy your 'users'
1012 # file from Cistron.
1016 # Write a detailed log of all accounting records received.
1019 # Note that we do NOT use NAS-IP-Address here, as
1020 # that attribute MAY BE from the originating NAS, and
1021 # NOT from the proxy which actually sent us the
1022 # request. The Client-IP-Address attribute is ALWAYS
1023 # the address of the client which sent us the
1026 # The following line creates a new detail file for
1027 # every radius client (by IP address or hostname).
1028 # In addition, a new detail file is created every
1029 # day, so that the detail file doesn't have to go
1030 # through a 'log rotation'
1032 # If your detail files are large, you may also want
1033 # to add a ':%H' (see doc/variables.txt) to the end
1034 # of it, to create a new detail file every hour, e.g.:
1036 # ..../detail-%Y%m%d:%H
1038 # This will create a new detail file for every hour.
1040 detailfile = ${radacctdir}/%{Client-IP-Address}/detail-%Y%m%d
1043 # The Unix-style permissions on the 'detail' file.
1045 # The detail file often contains secret or private
1046 # information about users. So by keeping the file
1047 # permissions restrictive, we can prevent unwanted
1048 # people from seeing that information.
1052 # Every entry in th edetail file has a header which
1053 # is a timestamp. By default, we use the ctime
1054 # format (see "man ctime" for details).
1056 # The header can be customized by editing this
1057 # string. See "doc/variables.txt" for a description
1058 # of what can be put here.
1065 # Many people want to log authentication requests.
1066 # Rather than modifying the server core to print out more
1067 # messages, we can use a different instance of the 'detail'
1068 # module, to log the authentication requests to a file.
1070 # You will also need to un-comment the 'auth_log' line
1071 # in the 'authorize' section, below.
1074 # detailfile = ${radacctdir}/%{Client-IP-Address}/auth-detail-%Y%m%d
1077 # This MUST be 0600, otherwise anyone can read
1078 # the users passwords!
1083 # This module logs authentication reply packets sent
1084 # to a NAS. Both Access-Accept and Access-Reject packets
1087 # You will also need to un-comment the 'reply_log' line
1088 # in the 'post-auth' section, below.
1090 # detail reply_log {
1091 # detailfile = ${radacctdir}/%{Client-IP-Address}/reply-detail-%Y%m%d
1094 # This MUST be 0600, otherwise anyone can read
1095 # the users passwords!
1100 # This module logs packets proxied to a home server.
1102 # You will also need to un-comment the 'pre_proxy_log' line
1103 # in the 'pre-proxy' section, below.
1105 # detail pre_proxy_log {
1106 # detailfile = ${radacctdir}/%{Client-IP-Address}/pre-proxy-detail-%Y%m%d
1109 # This MUST be 0600, otherwise anyone can read
1110 # the users passwords!
1115 # This module logs response packets from a home server.
1117 # You will also need to un-comment the 'post_proxy_log' line
1118 # in the 'post-proxy' section, below.
1120 # detail post_proxy_log {
1121 # detailfile = ${radacctdir}/%{Client-IP-Address}/post-proxy-detail-%Y%m%d
1124 # This MUST be 0600, otherwise anyone can read
1125 # the users passwords!
1130 # The rlm_sql_log module appends the SQL queries in a log
1131 # file which is read later by the radsqlrelay program.
1133 # This module only performs the dynamic expansion of the
1134 # variables found in the SQL statements. No operation is
1135 # executed on the database server. (this could be done
1136 # later by an external program) That means the module is
1137 # useful only with non-"SELECT" statements.
1139 # See rlm_sql_log(5) manpage.
1142 # path = ${radacctdir}/sql-relay
1143 # acct_table = "radacct"
1144 # postauth_table = "radpostauth"
1146 # Start = "INSERT INTO ${acct_table} (AcctSessionId, UserName, \
1147 # NASIPAddress, FramedIPAddress, AcctStartTime, AcctStopTime, \
1148 # AcctSessionTime, AcctTerminateCause) VALUES \
1149 # ('%{Acct-Session-Id}', '%{User-Name}', '%{NAS-IP-Address}', \
1150 # '%{Framed-IP-Address}', '%S', '0', '0', '')"
1151 # Stop = "INSERT INTO ${acct_table} (AcctSessionId, UserName, \
1152 # NASIPAddress, FramedIPAddress, AcctStartTime, AcctStopTime, \
1153 # AcctSessionTime, AcctTerminateCause) VALUES \
1154 # ('%{Acct-Session-Id}', '%{User-Name}', '%{NAS-IP-Address}', \
1155 # '%{Framed-IP-Address}', '0', '%S', '%{Acct-Session-Time}', \
1156 # '%{Acct-Terminate-Cause}')"
1157 # Alive = "INSERT INTO ${acct_table} (AcctSessionId, UserName, \
1158 # NASIPAddress, FramedIPAddress, AcctStartTime, AcctStopTime, \
1159 # AcctSessionTime, AcctTerminateCause) VALUES \
1160 # ('%{Acct-Session-Id}', '%{User-Name}', '%{NAS-IP-Address}', \
1161 # '%{Framed-IP-Address}', '0', '0', '%{Acct-Session-Time}', '')"
1163 # Post-Auth = "INSERT INTO ${postauth_table} \
1164 # (user, pass, reply, date) VALUES \
1165 # ('%{User-Name}', '%{User-Password:-Chap-Password}', \
1166 # '%{reply:Packet-Type}', '%S')"
1170 # Create a unique accounting session Id. Many NASes re-use
1171 # or repeat values for Acct-Session-Id, causing no end of
1174 # This module will add a (probably) unique session id
1175 # to an accounting packet based on the attributes listed
1176 # below found in the packet. See doc/rlm_acct_unique for
1180 key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, NAS-Port"
1184 # Include another file that has the SQL-related configuration.
1185 # This is another file only because it tends to be big.
1187 # The following configuration file is for use with MySQL.
1189 # For Postgresql, use: ${confdir}/postgresql.conf
1190 # For MS-SQL, use: ${confdir}/mssql.conf
1191 # For Oracle, use: ${confdir}/oraclesql.conf
1193 $INCLUDE ${confdir}/sql.conf
1196 # For Cisco VoIP specific accounting with Postgresql,
1197 # use: ${confdir}/pgsql-voip.conf
1199 # You will also need the sql schema from:
1200 # src/billing/cisco_h323_db_schema-postgres.sql
1201 # Note: This config can be use AS WELL AS the standard sql
1202 # config if you need SQL based Auth
1205 # Write a 'utmp' style file, of which users are currently
1206 # logged in, and where they've logged in from.
1208 # This file is used mainly for Simultaneous-Use checking,
1209 # and also 'radwho', to see who's currently logged in.
1212 # Where the file is stored. It's not a log file,
1213 # so it doesn't need rotating.
1215 filename = ${logdir}/radutmp
1217 # The field in the packet to key on for the
1218 # 'user' name, If you have other fields which you want
1219 # to use to key on to control Simultaneous-Use,
1220 # then you can use them here.
1222 # Note, however, that the size of the field in the
1223 # 'utmp' data structure is small, around 32
1224 # characters, so that will limit the possible choices
1227 # You may want instead: %{Stripped-User-Name:-%{User-Name}}
1228 username = %{User-Name}
1231 # Whether or not we want to treat "user" the same
1232 # as "USER", or "User". Some systems have problems
1233 # with case sensitivity, so this should be set to
1234 # 'no' to enable the comparisons of the key attribute
1235 # to be case insensitive.
1237 case_sensitive = yes
1239 # Accounting information may be lost, so the user MAY
1240 # have logged off of the NAS, but we haven't noticed.
1241 # If so, we can verify this information with the NAS,
1243 # If we want to believe the 'utmp' file, then this
1244 # configuration entry can be set to 'no'.
1246 check_with_nas = yes
1248 # Set the file permissions, as the contents of this file
1249 # are usually private.
1255 # "Safe" radutmp - does not contain caller ID, so it can be
1256 # world-readable, and radwho can work for normal users, without
1257 # exposing any information that isn't already exposed by who(1).
1259 # This is another 'instance' of the radutmp module, but it is given
1260 # then name "sradutmp" to identify it later in the "accounting"
1263 filename = ${logdir}/sradutmp
1268 # attr_filter - filters the attributes received in replies from
1269 # proxied servers, to make sure we send back to our RADIUS client
1270 # only allowed attributes.
1271 attr_filter attr_filter.post-proxy {
1272 attrsfile = ${confdir}/attrs
1275 # attr_filter - filters the attributes in the packets we send to
1276 # the RADIUS home servers.
1277 attr_filter attr_filter.pre-proxy {
1278 attrsfile = ${confdir}/attrs.pre-proxy
1282 # This module takes an attribute (count-attribute).
1283 # It also takes a key, and creates a counter for each unique
1284 # key. The count is incremented when accounting packets are
1285 # received by the server. The value of the increment depends
1286 # on the attribute type.
1287 # If the attribute is Acct-Session-Time or of an integer type we add the
1288 # value of the attribute. If it is anything else we increase the
1291 # The 'reset' parameter defines when the counters are all reset to
1292 # zero. It can be hourly, daily, weekly, monthly or never.
1294 # hourly: Reset on 00:00 of every hour
1295 # daily: Reset on 00:00:00 every day
1296 # weekly: Reset on 00:00:00 on sunday
1297 # monthly: Reset on 00:00:00 of the first day of each month
1299 # It can also be user defined. It should be of the form:
1301 # h: hours, d: days, w: weeks, m: months
1302 # If the letter is ommited days will be assumed. In example:
1303 # reset = 10h (reset every 10 hours)
1304 # reset = 12 (reset every 12 days)
1307 # The check-name attribute defines an attribute which will be
1308 # registered by the counter module and can be used to set the
1309 # maximum allowed value for the counter after which the user
1313 # DEFAULT Max-Daily-Session := 36000
1316 # You should add the counter module in the instantiate
1317 # section so that it registers check-name before the files
1318 # module reads the users file.
1320 # If check-name is set and the user is to be rejected then we
1321 # send back a Reply-Message and we log a Failure-Message in
1323 # If the count attribute is Acct-Session-Time then on each login
1324 # we send back the remaining online time as a Session-Timeout attribute
1325 # ELSE and if the return-attribute is set, we send back that attribute.
1326 # The return-attribute is set MUST be of an integer type
1328 # The counter-name can also be used instead of using the check-name
1331 # DEFAULT Daily-Session-Time > 3600, Auth-Type = Reject
1332 # Reply-Message = "You've used up more than one hour today"
1334 # The allowed-servicetype attribute can be used to only take
1335 # into account specific sessions. For example if a user first
1336 # logs in through a login menu and then selects ppp there will
1337 # be two sessions. One for Login-User and one for Framed-User
1338 # service type. We only need to take into account the second one.
1340 # The module should be added in the instantiate, authorize and
1341 # accounting sections. Make sure that in the authorize
1342 # section it comes after any module which sets the
1343 # 'check-name' attribute.
1346 filename = ${raddbdir}/db.daily
1348 count-attribute = Acct-Session-Time
1350 counter-name = Daily-Session-Time
1351 check-name = Max-Daily-Session
1352 allowed-servicetype = Framed-User
1353 #return-attribute = Session-Timeout
1357 # The "always" module is here for debugging purposes. Each
1358 # instance simply returns the same result, always, without
1373 # The 'expression' module currently has no configuration.
1375 # This module is useful only for 'xlat'. To use it,
1376 # put 'exec' into the 'instantiate' section. You can then
1377 # do dynamic translation of attributes like:
1379 # Attribute-Name = `%{expr:2 + 3 + %{exec: uid -u}}`
1381 # The value of the attribute will be replaced with the output
1382 # of the program which is executed. Due to RADIUS protocol
1383 # limitations, any output over 253 bytes will be ignored.
1385 # The module also registers a few paircompare functions
1390 # The 'digest' module currently has no configuration.
1392 # "Digest" authentication against a Cisco SIP server.
1393 # See 'doc/rfc/draft-sterman-aaa-sip-00.txt' for details
1394 # on performing digest authentication for Cisco SIP servers.
1400 # The expiration module. This handles the Expiration attribute
1401 # It should be included in the *end* of the authorize section
1402 # in order to handle user Expiration. It should also be included
1403 # in the instantiate section in order to register the Expiration
1408 # The Reply-Message which will be sent back in case the
1409 # account has expired. Dynamic substitution is supported
1411 reply-message = "Password Has Expired\r\n"
1412 # reply-message = "Your account has expired, %{User-Name}\r\n"
1415 # The logintime module. This handles the Login-Time,
1416 # Current-Time, and Time-Of-Day attributes. It should be
1417 # included in the *end* of the authorize section in order to
1418 # handle Login-Time checks. It should also be included in the
1419 # instantiate section in order to register the Current-Time
1420 # and Time-Of-Day comparison functions.
1422 # When the Login-Time attribute is set to some value, and the
1423 # user has bene permitted to log in, a Session-Timeout is
1424 # calculated based on the remaining time. See "doc/README".
1428 # The Reply-Message which will be sent back in case
1429 # the account is calling outside of the allowed
1430 # timespan. Dynamic substitution is supported.
1432 reply-message = "You are calling outside your allowed timespan\r\n"
1433 # reply-message = "Outside allowed timespan (%{check:Login-Time}), %{User-Name}\r\n"
1435 # The minimum timeout (in seconds) a user is allowed
1436 # to have. If the calculated timeout is lower we don't
1437 # allow the logon. Some NASes do not handle values
1438 # lower than 60 seconds well.
1439 minimum-timeout = 60
1442 # Execute external programs
1444 # This module is useful only for 'xlat'. To use it,
1445 # put 'exec' into the 'instantiate' section. You can then
1446 # do dynamic translation of attributes like:
1448 # Attribute-Name = `%{exec:/path/to/program args}`
1450 # The value of the attribute will be replaced with the output
1451 # of the program which is executed. Due to RADIUS protocol
1452 # limitations, any output over 253 bytes will be ignored.
1454 # The RADIUS attributes from the user request will be placed
1455 # into environment variables of the executed program, as
1456 # described in 'doc/variables.txt'
1460 input_pairs = request
1466 # This is a more general example of the execute module.
1468 # This one is called "echo".
1470 # Attribute-Name = `%{echo:/path/to/program args}`
1472 # If you wish to execute an external program in more than
1473 # one section (e.g. 'authorize', 'pre_proxy', etc), then it
1474 # is probably best to define a different instance of the
1475 # 'exec' module for every section.
1477 # The return value of the program run determines the result
1478 # of the exec instance call as follows:
1479 # (See doc/configurable_failover for details)
1481 # < 0 : fail the module failed
1482 # = 0 : ok the module succeeded
1483 # = 1 : reject the module rejected the user
1484 # = 2 : fail the module failed
1485 # = 3 : ok the module succeeded
1486 # = 4 : handled the module has done everything to handle the request
1487 # = 5 : invalid the user's configuration entry was invalid
1488 # = 6 : userlock the user was locked out
1489 # = 7 : notfound the user was not found
1490 # = 8 : noop the module did nothing
1491 # = 9 : updated the module updated information in the request
1492 # > 9 : fail the module failed
1496 # Wait for the program to finish.
1498 # If we do NOT wait, then the program is "fire and
1499 # forget", and any output attributes from it are ignored.
1501 # If we are looking for the program to output
1502 # attributes, and want to add those attributes to the
1503 # request, then we MUST wait for the program to
1504 # finish, and therefore set 'wait=yes'
1506 # allowed values: {no, yes}
1510 # The name of the program to execute, and it's
1511 # arguments. Dynamic translation is done on this
1512 # field, so things like the following example will
1515 program = "/bin/echo %{User-Name}"
1518 # The attributes which are placed into the
1519 # environment variables for the program.
1521 # Allowed values are:
1523 # request attributes from the request
1524 # config attributes from the configuration items list
1525 # reply attributes from the reply
1526 # proxy-request attributes from the proxy request
1527 # proxy-reply attributes from the proxy reply
1529 # Note that some attributes may not exist at some
1530 # stages. e.g. There may be no proxy-reply
1531 # attributes if this module is used in the
1532 # 'authorize' section.
1534 input_pairs = request
1537 # Where to place the output attributes (if any) from
1538 # the executed program. The values allowed, and the
1539 # restrictions as to availability, are the same as
1540 # for the input_pairs.
1542 output_pairs = reply
1545 # When to execute the program. If the packet
1546 # type does NOT match what's listed here, then
1547 # the module does NOT execute the program.
1549 # For a list of allowed packet types, see
1550 # the 'dictionary' file, and look for VALUEs
1551 # of the Packet-Type attribute.
1553 # By default, the module executes on ANY packet.
1554 # Un-comment out the following line to tell the
1555 # module to execute only if an Access-Accept is
1556 # being sent to the NAS.
1558 #packet_type = Access-Accept
1561 # Should we escape the environment variables?
1563 # If this is set, all the RADIUS attributes
1564 # are capitalised and dashes replaced with
1565 # underscores. Also, RADIUS values are surrounded
1566 # with double-quotes.
1568 # That is to say: User-Name=BobUser => USER_NAME="BobUser"
1573 # Do server side ip pool management. Should be added in post-auth and
1574 # accounting sections.
1576 # The module also requires the existance of the Pool-Name
1577 # attribute. That way the administrator can add the Pool-Name
1578 # attribute in the user profiles and use different pools
1579 # for different users. The Pool-Name attribute is a *check* item not
1581 # The Pool-Name should be set to the ippool module instance name or to
1582 # DEFAULT to match any module.
1585 # radiusd.conf: ippool students { [...] }
1586 # ippool teachers { [...] }
1587 # users file : DEFAULT Group == students, Pool-Name := "students"
1588 # DEFAULT Group == teachers, Pool-Name := "teachers"
1589 # DEFAULT Group == other, Pool-Name := "DEFAULT"
1591 # ********* IF YOU CHANGE THE RANGE PARAMETERS YOU MUST *********
1592 # ********* THEN ERASE THE DB FILES *********
1596 # range-start,range-stop: The start and end ip
1597 # addresses for the ip pool
1598 range-start = 192.168.1.1
1599 range-stop = 192.168.3.254
1601 # netmask: The network mask used for the ip's
1602 netmask = 255.255.255.0
1604 # cache-size: The gdbm cache size for the db
1605 # files. Should be equal to the number of ip's
1606 # available in the ip pool
1609 # session-db: The main db file used to allocate ip's to clients
1610 session-db = ${raddbdir}/db.ippool
1612 # ip-index: Helper db index file used in multilink
1613 ip-index = ${raddbdir}/db.ipindex
1615 # override: Will this ippool override a Framed-IP-Address already set
1618 # maximum-timeout: If not zero specifies the maximum time in seconds an
1619 # entry may be active. Default: 0
1622 # The key to use for the session database (which holds the allocated ip's)
1623 # normally it should just be the nas ip/port (which is the default)
1624 #key = "%{NAS-IP-Address} %{NAS-Port}"
1627 # OTP token support. Not included by default.
1628 # $INCLUDE ${confdir}/otp.conf
1631 # Implements Login-Time, Current-Time, and Time-Of-Day
1635 # Don't worry about anything here for now..
1640 # Kerberos. See doc/rlm_krb5 for minimal docs.
1643 # keytab = /path/to/keytab
1644 # service_principal = name_of_principle
1650 # This section orders the loading of the modules. Modules
1651 # listed here will get loaded BEFORE the later sections like
1652 # authorize, authenticate, etc. get examined.
1654 # This section is not strictly needed. When a section like
1655 # authorize refers to a module, it's automatically loaded and
1656 # initialized. However, some modules may not be listed in any
1657 # of the following sections, so they can be listed here.
1659 # Also, listing modules here ensures that you have control over
1660 # the order in which they are initalized. If one module needs
1661 # something defined by another module, you can list them in order
1662 # here, and ensure that the configuration will be OK.
1666 # Allows the execution of external scripts.
1667 # The entire command line (and output) must fit into 253 bytes.
1669 # e.g. Framed-Pool = `%{exec:/bin/echo foo}`
1673 # The expression module doesn't do authorization,
1674 # authentication, or accounting. It only does dynamic
1675 # translation, of the form:
1677 # Session-Timeout = `%{expr:2 + 3}`
1679 # So the module needs to be instantiated, but CANNOT be
1680 # listed in any other section. See 'doc/rlm_expr' for
1686 # We add the counter module here so that it registers
1687 # the check-name attribute before any module which sets
1693 # subsections here can be thought of as "virtual" modules.
1695 # e.g. If you have two redundant SQL servers, and you want to
1696 # use them in the authorize and accounting sections, you could
1697 # place a "redundant" block in each section, containing the
1698 # exact same text. Or, you could uncomment the following
1699 # lines, and list "redundant_sql" in the authorize and
1700 # accounting sections.
1702 #redundant redundant_sql {
1708 # Authorization. First preprocess (hints and huntgroups files),
1709 # then realms, and finally look in the "users" file.
1711 # The order of the realm modules will determine the order that
1712 # we try to find a matching realm.
1714 # Make *sure* that 'preprocess' comes before any realm if you
1715 # need to setup hints for the remote radius server
1718 # The preprocess module takes care of sanitizing some bizarre
1719 # attributes in the request, and turning them into attributes
1720 # which are more standard.
1722 # It takes care of processing the 'raddb/hints' and the
1723 # 'raddb/huntgroups' files.
1725 # It also adds the %{Client-IP-Address} attribute to the request.
1729 # If you want to have a log of authentication requests,
1730 # un-comment the following line, and the 'detail auth_log'
1735 # The chap module will set 'Auth-Type := CHAP' if we are
1736 # handling a CHAP request and Auth-Type has not already been set
1740 # If the users are logging in with an MS-CHAP-Challenge
1741 # attribute for authentication, the mschap module will find
1742 # the MS-CHAP-Challenge attribute, and add 'Auth-Type := MS-CHAP'
1743 # to the request, which will cause the server to then use
1744 # the mschap module for authentication.
1748 # Pull crypt'd passwords from /etc/passwd or /etc/shadow,
1749 # using the system API's to get the password. If you want
1750 # to read /etc/passwd or /etc/shadow directly, see the
1751 # passwd module, above.
1756 # If you have a Cisco SIP server authenticating against
1757 # FreeRADIUS, uncomment the following line, and the 'digest'
1758 # line in the 'authenticate' section.
1762 # Look for IPASS style 'realm/', and if not found, look for
1763 # '@realm', and decide whether or not to proxy, based on
1768 # If you are using multiple kinds of realms, you probably
1769 # want to set "ignore_null = yes" for all of them.
1770 # Otherwise, when the first style of realm doesn't match,
1771 # the other styles won't be checked.
1777 # This module takes care of EAP-MD5, EAP-TLS, and EAP-LEAP
1780 # It also sets the EAP-Type attribute in the request
1781 # attribute list to the EAP type from the packet.
1785 # Read the 'users' file
1789 # Look in an SQL database. The schema of the database
1790 # is meant to mirror the "users" file.
1792 # See "Authorization Queries" in sql.conf
1796 # If you are using /etc/smbpasswd, and are also doing
1797 # mschap authentication, the un-comment this line, and
1798 # configure the 'etc_smbpasswd' module, above.
1802 # The ldap module will set Auth-Type to LDAP if it has not
1807 # Enforce daily limits on time spent logged in.
1811 # Use the checkval module
1818 # If no other module has claimed responsibility for
1819 # authentication, then try to use PAP. This allows the
1820 # other modules listed above to add a "known good" password
1821 # to the request, and to do nothing else. The PAP module
1822 # will then see that password, and use it to do PAP
1825 # This module should be listed last, so that the other modules
1826 # get a chance to set Auth-Type for themselves.
1835 # This section lists which modules are available for authentication.
1836 # Note that it does NOT mean 'try each module in order'. It means
1837 # that a module from the 'authorize' section adds a configuration
1838 # attribute 'Auth-Type := FOO'. That authentication type is then
1839 # used to pick the apropriate module from the list below.
1842 # In general, you SHOULD NOT set the Auth-Type attribute. The server
1843 # will figure it out on its own, and will do the right thing. The
1844 # most common side effect of erroneously setting the Auth-Type
1845 # attribute is that one authentication method will work, but the
1848 # The common reasons to set the Auth-Type attribute by hand
1849 # is to either forcibly reject the user, or forcibly accept him.
1853 # PAP authentication, when a back-end database listed
1854 # in the 'authorize' section supplies a password. The
1855 # password can be clear-text, or encrypted.
1861 # Most people want CHAP authentication
1862 # A back-end database listed in the 'authorize' section
1863 # MUST supply a CLEAR TEXT password. Encrypted passwords
1870 # MSCHAP authentication.
1876 # If you have a Cisco SIP server authenticating against
1877 # FreeRADIUS, uncomment the following line, and the 'digest'
1878 # line in the 'authorize' section.
1882 # Pluggable Authentication Modules.
1886 # See 'man getpwent' for information on how the 'unix'
1887 # module checks the users password. Note that packets
1888 # containing CHAP-Password attributes CANNOT be authenticated
1889 # against /etc/passwd! See the FAQ for details.
1893 # Uncomment it if you want to use ldap for authentication
1895 # Note that this means "check plain-text password against
1896 # the ldap database", which means that EAP won't work,
1897 # as it does not supply a plain-text password.
1903 # Allow EAP authentication.
1909 # Pre-accounting. Decide which accounting type to use.
1915 # Ensure that we have a semi-unique identifier for every
1916 # request, and many NAS boxes are broken.
1920 # Look for IPASS-style 'realm/', and if not found, look for
1921 # '@realm', and decide whether or not to proxy, based on
1924 # Accounting requests are generally proxied to the same
1925 # home server as authentication requests.
1931 # Read the 'acct_users' file
1936 # Accounting. Log the accounting data.
1940 # Create a 'detail'ed log of the packets.
1941 # Note that accounting requests which are proxied
1942 # are also logged in the detail file.
1946 # Update the wtmp file
1948 # If you don't use "radlast", you can delete this line.
1952 # For Simultaneous-Use tracking.
1954 # Due to packet losses in the network, the data here
1955 # may be incorrect. There is little we can do about it.
1959 # Return an address to the IP Pool when we see a stop record.
1963 # Log traffic to an SQL database.
1965 # See "Accounting queries" in sql.conf
1969 # Instead of sending the query to the SQL server,
1970 # write it into a log file.
1974 # Cisco VoIP specific bulk accounting
1980 # Session database, used for checking Simultaneous-Use. Either the radutmp
1981 # or rlm_sql module can handle this.
1982 # The rlm_sql module is *much* faster
1987 # See "Simultaneous Use Checking Querie" in sql.conf
1992 # Post-Authentication
1993 # Once we KNOW that the user has been authenticated, there are
1994 # additional steps we can take.
1996 # Get an address from the IP Pool.
2000 # If you want to have a log of authentication replies,
2001 # un-comment the following line, and the 'detail reply_log'
2006 # After authenticating the user, do another SQL query.
2008 # See "Authentication Logging Queries" in sql.conf
2012 # Instead of sending the query to the SQL server,
2013 # write it into a log file.
2018 # Un-comment the following if you have set
2019 # 'edir_account_policy_check = yes' in the ldap module sub-section of
2020 # the 'modules' section.
2024 # Access-Reject packets are sent through the REJECT sub-section of the
2025 # post-auth section.
2026 # Uncomment the following and set the module name to the ldap instance
2027 # name if you have set 'edir_account_policy_check = yes' in the ldap
2028 # module sub-section of the 'modules' section.
2030 # Post-Auth-Type REJECT {
2031 # insert-module-name-here
2037 # When the server decides to proxy a request to a home server,
2038 # the proxied request is first passed through the pre-proxy
2039 # stage. This stage can re-write the request, or decide to
2042 # Only a few modules currently have this method.
2047 # Uncomment the following line if you want to change attributes
2048 # as defined in the preproxy_users file.
2051 # Uncomment the following line if you want to filter requests
2052 # sent to remote servers based on the rules defined in the
2053 # 'attrs.pre-proxy' file.
2054 # attr_filter.pre-proxy
2056 # If you want to have a log of packets proxied to a home
2057 # server, un-comment the following line, and the
2058 # 'detail pre_proxy_log' section, above.
2063 # When the server receives a reply to a request it proxied
2064 # to a home server, the request may be massaged here, in the
2069 # If you want to have a log of replies from a home server,
2070 # un-comment the following line, and the 'detail post_proxy_log'
2076 # Uncomment the following line if you want to filter replies from
2077 # remote proxies based on the rules defined in the 'attrs' file.
2078 # attr_filter.post-proxy
2081 # If you are proxying LEAP, you MUST configure the EAP
2082 # module, and you MUST list it here, in the post-proxy
2085 # You MUST also use the 'nostrip' option in the 'realm'
2086 # configuration. Otherwise, the User-Name attribute
2087 # in the proxied request will not match the user name
2088 # hidden inside of the EAP packet, and the end server will
2089 # reject the EAP request.