diff options
author | Nachtfalkeaw <nachtfalkeaw@web.de> | 2011-09-12 00:33:42 +0300 |
---|---|---|
committer | Nachtfalkeaw <nachtfalkeaw@web.de> | 2011-09-12 00:33:42 +0300 |
commit | 0a5c4472d2be825f05b3ca8b91678385777f2d9c (patch) | |
tree | dc6fd43168acbf4215d175de7b910dba4fb3ead6 | |
parent | a6a23348304685bbf5ec76e58b46559379eb876f (diff) | |
download | pfsense-packages-0a5c4472d2be825f05b3ca8b91678385777f2d9c.tar.gz pfsense-packages-0a5c4472d2be825f05b3ca8b91678385777f2d9c.tar.bz2 pfsense-packages-0a5c4472d2be825f05b3ca8b91678385777f2d9c.zip |
added user attruibutes "Framed-IP-Netmask" and "Framed-Routing" to webGUI
-rw-r--r-- | config/freeradius.inc | 12 |
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"; |