diff options
author | Chris Buechler <cmb@pfsense.org> | 2011-09-06 13:25:38 -0700 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2011-09-06 13:25:38 -0700 |
commit | ee4a613c8e1decd6d12d6d6662c08d7a3726fdec (patch) | |
tree | 31605ca571677ee3d53ae975f5a3836239e06e54 | |
parent | 78cdb4ad1510320c6337de0318ef0af0dea40495 (diff) | |
parent | 33a5ea9105c87fd242ab3437d3c92d07b6c40120 (diff) | |
download | pfsense-packages-ee4a613c8e1decd6d12d6d6662c08d7a3726fdec.tar.gz pfsense-packages-ee4a613c8e1decd6d12d6d6662c08d7a3726fdec.tar.bz2 pfsense-packages-ee4a613c8e1decd6d12d6d6662c08d7a3726fdec.zip |
Merge pull request #61 from Nachtfalkeaw/patch-14
freeRADIUS: changing logging capabilities (logging to syslog or to /var/l
-rw-r--r-- | config/freeradius.inc | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/config/freeradius.inc b/config/freeradius.inc index 0a41ed43..86881a19 100644 --- a/config/freeradius.inc +++ b/config/freeradius.inc @@ -36,16 +36,18 @@ function freeradius_install_command() { function freeradius_settings_resync() { global $config; - $settings = $config['installedpackages']['freeradiussettings']['config'][0]; - $iface = ($settings['interface'] ? $settings['interface'] : 'LAN'); $iface = convert_friendly_interface_to_real_interface_name($iface); $iface_ip = find_interface_ip($iface); $port = ($settings['port'] != '' ? $settings['port'] : 0); - $radiuslogging = $settings['radiuslogging']; - $radiuslogbadpass = $settings['radiuslogbadpass']; - $radiusloggoodpass = $settings['radiusloggoodpass']; + $radiuslogging = $settings['radiuslogging']; + $radiuslogbadpass = $settings['radiuslogbadpass']; + $radiusloggoodpass = $settings['radiusloggoodpass']; + $max_requests_var = $settings['max_requests_var']; + $max_request_time_var = $settings['max_request_time_var']; + $cleanup_delay_var = $settings['cleanup_delay_var']; + $logdir_var = $settings['logdir_var']; // FreeRADIUS's configuration is huge // This is the standard default config file, trimmed down a bit. Somebody might want to implement more options. It should be as simple as editing this, then also providing the settings in each file that was included here (or maybe just put the config inlined here). @@ -55,7 +57,7 @@ exec_prefix = \${prefix} sysconfdir = \${prefix}/etc localstatedir = /var sbindir = \${exec_prefix}/sbin -logdir = /var/log +logdir = $logdir_var raddbdir = \${sysconfdir}/raddb radacctdir = \${logdir}/radacct confdir = \${raddbdir} @@ -65,10 +67,10 @@ libdir = \${exec_prefix}/lib pidfile = \${run_dir}/radiusd.pid #user = nobody #group = nobody -max_request_time = 30 +max_request_time = $max_request_time_var delete_blocked_requests = no -cleanup_delay = 5 -max_requests = 1024 +cleanup_delay = $cleanup_delay_var +max_requests = $max_requests_var bind_address = $iface_ip port = $port hostname_lookups = no |