aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeradius.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-09-14 13:28:02 -0700
committerScott Ullrich <sullrich@gmail.com>2011-09-14 13:28:02 -0700
commitc523bb6b21261dd457a4176dded52d33d8437898 (patch)
tree807f4418f98a566248bafcd4a84ead84528afdb4 /config/freeradius.inc
parent94fe67c09d8860aa21892f2651effc3a1b278eef (diff)
parent646f993bffbe2414a23274902315f2c259f87aff (diff)
downloadpfsense-packages-c523bb6b21261dd457a4176dded52d33d8437898.tar.gz
pfsense-packages-c523bb6b21261dd457a4176dded52d33d8437898.tar.bz2
pfsense-packages-c523bb6b21261dd457a4176dded52d33d8437898.zip
Merge pull request #83 from Nachtfalkeaw/patch-37
added "netmask/Framed-IP-Netmask" and "gateway/Framed-Route"
Diffstat (limited to 'config/freeradius.inc')
-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 .'"';
}