aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNachtfalkeaw <nachtfalkeaw@web.de>2011-09-14 23:26:47 +0300
committerNachtfalkeaw <nachtfalkeaw@web.de>2011-09-14 23:26:47 +0300
commit646f993bffbe2414a23274902315f2c259f87aff (patch)
tree807f4418f98a566248bafcd4a84ead84528afdb4
parent94fe67c09d8860aa21892f2651effc3a1b278eef (diff)
downloadpfsense-packages-646f993bffbe2414a23274902315f2c259f87aff.tar.gz
pfsense-packages-646f993bffbe2414a23274902315f2c259f87aff.tar.bz2
pfsense-packages-646f993bffbe2414a23274902315f2c259f87aff.zip
added "netmask/Framed-IP-Netmask" and "gateway/Framed-Route"
-rw-r--r--config/freeradius.inc24
1 files changed, 16 insertions, 8 deletions
diff --git a/config/freeradius.inc b/config/freeradius.inc
index 4fbd5bc5..17b5408f 100644
--- a/config/freeradius.inc
+++ b/config/freeradius.inc
@@ -449,21 +449,29 @@ function freeradius_users_resync() {
foreach ($users as $user) {
$username = $user['username'];
$password = $user['password'];
- $multiconnect = $user['multiconnect'];
+ $multiconnect = $user['multiconnect'];
$ip = $user['ip'];
- $userexpiration=$user['expiration'];
- $sessiontime=$user['sessiontime'];
- $onlinetime=$user['onlinetime'];
- $vlanid=$user['vlanid'];
- $additionaloptions=$user['additionaloptions'];
- $atrib='';
- $head="$username User-Password == ".'"'.$password.'"';
+ $subnetmask = $user['subnetmask'];
+ $gateway = $user['gateway'];
+ $userexpiration=$user['expiration'];
+ $sessiontime=$user['sessiontime'];
+ $onlinetime=$user['onlinetime'];
+ $vlanid=$user['vlanid'];
+ $additionaloptions=$user['additionaloptions'];
+ $atrib='';
+ $head="$username User-Password == ".'"'.$password.'"';
if ($multiconnect <> '') {
$head .=", Simultaneous-Use += $multiconnect";
}
if ($userexpiration <> '') {
$head .=", Expiration := ".'"'.$userexpiration.'"';
}
+ if ($subnetmask<> '') {
+ $head .=", Framed-IP-Netmask = $subnetmask";
+ }
+ if ($gateway<> '') {
+ $head .=", Framed-Route = $gateway";
+ }
if ($onlinetime <> '') {
$head .=", Login-Time := ". '"' . $onlinetime .'"';
}