aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeradius.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/freeradius.inc')
-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";