aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeradius2/freeradius.inc
diff options
context:
space:
mode:
authorNachtfalke <nachtfalkeaw@web.de>2012-01-07 15:35:01 +0100
committerNachtfalke <nachtfalkeaw@web.de>2012-01-07 15:35:01 +0100
commitb2922de24a15da547e02b819ae8d0f5b53d258d4 (patch)
tree15cfbf4d6fc619f088e85d10bd644f623b5a7bf8 /config/freeradius2/freeradius.inc
parentcb6548794c1c18f95b73c0e56063ff3c53fc3a68 (diff)
downloadpfsense-packages-b2922de24a15da547e02b819ae8d0f5b53d258d4.tar.gz
pfsense-packages-b2922de24a15da547e02b819ae8d0f5b53d258d4.tar.bz2
pfsense-packages-b2922de24a15da547e02b819ae8d0f5b53d258d4.zip
synced wrong file
Diffstat (limited to 'config/freeradius2/freeradius.inc')
-rw-r--r--config/freeradius2/freeradius.inc38
1 files changed, 19 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"