diff options
author | Scott Ullrich <sullrich@gmail.com> | 2011-09-14 13:28:02 -0700 |
---|---|---|
committer | Scott Ullrich <sullrich@gmail.com> | 2011-09-14 13:28:02 -0700 |
commit | c523bb6b21261dd457a4176dded52d33d8437898 (patch) | |
tree | 807f4418f98a566248bafcd4a84ead84528afdb4 | |
parent | 94fe67c09d8860aa21892f2651effc3a1b278eef (diff) | |
parent | 646f993bffbe2414a23274902315f2c259f87aff (diff) | |
download | pfsense-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"
-rw-r--r-- | config/freeradius.inc | 24 |
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 .'"'; } |