aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeradius2
diff options
context:
space:
mode:
authorJim P <jim@pingle.org>2012-01-07 06:44:54 -0800
committerJim P <jim@pingle.org>2012-01-07 06:44:54 -0800
commit34fdf23d1c27fb5cd216bff36ae18bcdde5fca2a (patch)
treedc51de998f1b4640365282cb3e67fdbeb32c0a47 /config/freeradius2
parentcb6548794c1c18f95b73c0e56063ff3c53fc3a68 (diff)
parent9791d4adbefd04960f04e0cd2bc19feca2da5f7e (diff)
downloadpfsense-packages-34fdf23d1c27fb5cd216bff36ae18bcdde5fca2a.tar.gz
pfsense-packages-34fdf23d1c27fb5cd216bff36ae18bcdde5fca2a.tar.bz2
pfsense-packages-34fdf23d1c27fb5cd216bff36ae18bcdde5fca2a.zip
Merge pull request #185 from Nachtfalkeaw/master
freeradius2 fixes
Diffstat (limited to 'config/freeradius2')
-rw-r--r--config/freeradius2/freeradius.inc38
-rw-r--r--config/freeradius2/freeradius.xml5
2 files changed, 24 insertions, 19 deletions
diff --git a/config/freeradius2/freeradius.inc b/config/freeradius2/freeradius.inc
index 98ac837f..baac37ae 100644
--- a/config/freeradius2/freeradius.inc
+++ b/config/freeradius2/freeradius.inc
@@ -94,7 +94,7 @@ function freeradius_install_command() {
conf_mount_rw();
write_rcfile($rcfile);
conf_mount_ro();
- restart_service("radiusd");
+ start_service("radiusd");
}
function freeradius_settings_resync() {
@@ -444,7 +444,7 @@ EOD;
conf_mount_ro();
freeradius_sync_on_changes();
- restart_service('freeradius');
+ restart_service('radiusd');
}
@@ -460,7 +460,7 @@ if (is_array($arrmacs) && !empty($arrmacs)) {
// Variables for macs file defined parameters
$varmacaddress = $macs['varmacaddress'];
- $varmacaddress = "\n$varmacaddress";
+ $varmacaddress = "$varmacaddress" . "\n";
$conf .= <<<EOD
$varmacaddress
@@ -475,7 +475,7 @@ EOD;
conf_mount_ro();
freeradius_sync_on_changes();
- restart_service('freeradius');
+ restart_service('radiusd');
}
@@ -727,7 +727,7 @@ EOD;
chmod($filename, 0600);
conf_mount_ro();
- restart_service('freeradius');
+ restart_service('radiusd');
}
// Gets started from freeradiuseapconf.xml
@@ -830,7 +830,7 @@ EOD;
// We don't need a restart at this time because there are additional changes needed in:
// "freeradius_settings_resync" and "freeradius_serverdefault_resync".
- // restart_service('freeradius');
+ // restart_service('radiusd');
freeradius_settings_resync();
}
@@ -1600,7 +1600,7 @@ EOD;
conf_mount_ro();
// No need to restart here because the restart of the service will be done in "freeradius_settings_resync"
- // restart_service('freeradius');
+ // restart_service('radiusd');
}
function freeradius_cacertcnf_resync() {
@@ -1957,7 +1957,7 @@ function freeradius_allcertcnf_resync() {
log_error("freeRADIUS: Added client.csr .crt .key .pem together with ca.der in /usr/local/etc/raddb/certs/client.tar");
// If there were changes on the certificates we need to restart freeradius
- restart_service('freeradius');
+ restart_service('radiusd');
}
}
@@ -2929,17 +2929,17 @@ policy {
# Add "rewrite.calling_station_id" in the "authorize" and "preacct"
# sections.
- rewrite.calling_station_id {
- if((Calling-Station-Id) && "%{Calling-Station-Id}" =~ /^%{config:policy.mac-addr}\$/i) {
- update request {
- Calling-Station-Id := "%{tolower:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}"
- }
- updated
- }
- else {
- noop
- }
- }
+ #rewrite.calling_station_id {
+ # if((Calling-Station-Id) && "%{Calling-Station-Id}" =~ /^%{config:policy.mac-addr}\$/i) {
+ # update request {
+ # Calling-Station-Id := "%{tolower:%{1}-%{2}-%{3}-%{4}-%{5}-%{6}}"
+ # }
+ # updated
+ # }
+ # else {
+ # noop
+ # }
+ #}
##### MODIFIED FOR http://wiki.freeradius.org/Mac-Auth#Mac-Auth+or+802.1x #####
# Add "rewrite_calling_station_id" in the "authorize" and "preacct"
diff --git a/config/freeradius2/freeradius.xml b/config/freeradius2/freeradius.xml
index 313495f2..e1c6c9f2 100644
--- a/config/freeradius2/freeradius.xml
+++ b/config/freeradius2/freeradius.xml
@@ -158,6 +158,11 @@
<chmod>0755</chmod>
<item>http://www.pfsense.org/packages/config/freeradius2/freeradiusmodulesldap.xml</item>
</additional_files_needed>
+ <additional_files_needed>
+ <prefix>/usr/local/pkg/</prefix>
+ <chmod>0755</chmod>
+ <item>http://www.pfsense.org/packages/config/freeradius2/freeradiusauthorizedmacs.xml</item>
+ </additional_files_needed>
<adddeleteeditpagefields>
<columnitem>
<fielddescr>Username</fielddescr>