aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-09-11 14:36:51 -0700
committerScott Ullrich <sullrich@gmail.com>2011-09-11 14:36:51 -0700
commitbecdca35d24b709b16ed1c4c2b3676814d3eba67 (patch)
tree211903cd7bbda905c14ce60074d4aba321ff566c
parent7224457fc34cca493e68fb5d174b1c95396b5b55 (diff)
parent0a5c4472d2be825f05b3ca8b91678385777f2d9c (diff)
downloadpfsense-packages-becdca35d24b709b16ed1c4c2b3676814d3eba67.tar.gz
pfsense-packages-becdca35d24b709b16ed1c4c2b3676814d3eba67.tar.bz2
pfsense-packages-becdca35d24b709b16ed1c4c2b3676814d3eba67.zip
Merge pull request #71 from Nachtfalkeaw/patch-24
added user attributes "Framed-IP-Netmask" and "Framed-Routing" to webGUI
-rw-r--r--config/freeradius.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/config/freeradius.inc b/config/freeradius.inc
index b7e4208c..4a250121 100644
--- a/config/freeradius.inc
+++ b/config/freeradius.inc
@@ -450,7 +450,9 @@ function freeradius_users_resync() {
$username = $user['username'];
$password = $user['password'];
$multiconnect = $user['multiconnect'];
- $ip = $user['ip'];
+ $ip = $user['ip'];
+ $subnetmask = $user['subnetmask'];
+ $gateway = $user['gateway'];
$userexpiration=$user['expiration'];
$sessiontime=$user['sessiontime'];
$onlinetime=$user['onlinetime'];
@@ -471,6 +473,14 @@ function freeradius_users_resync() {
if ($atrib <> '') { $atrib .=","; }
$atrib .="\r\n\tFramed-IP-Address = $ip";
}
+ if ($subnetmask <> '') {
+ if ($atrib <> '') { $atrib .=","; }
+ $atrib .="\r\n\tFramed-IP-Netmask = $subnetmask";
+ }
+ if ($gateway <> '') {
+ if ($atrib <> '') { $atrib .=","; }
+ $atrib .="\r\n\tFramed-Routing = $gateway";
+ }
if ($sessiontime <> '') {
if ($atrib <> '') { $atrib .=","; }
$atrib .="\r\n\tSession-Timeout := $sessiontime";