diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-05 19:16:57 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-05 19:16:57 +0000 |
commit | 5dfdc1fbcf7aa61849272490e465697111af44e7 (patch) | |
tree | c7b64458c86085a9cc167d224fbe631943168dbd /usr/local/www/vpn_pppoe.php | |
parent | 408d800c5ebab879bb795834470c9ac23db02841 (diff) | |
download | pfsense-5dfdc1fbcf7aa61849272490e465697111af44e7.zip pfsense-5dfdc1fbcf7aa61849272490e465697111af44e7.tar.gz |
Allow issuing of PPOE ips from RADIUS server
Ticket #709
Diffstat (limited to 'usr/local/www/vpn_pppoe.php')
-rwxr-xr-x | usr/local/www/vpn_pppoe.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/usr/local/www/vpn_pppoe.php b/usr/local/www/vpn_pppoe.php index 1aa3430..f130765 100755 --- a/usr/local/www/vpn_pppoe.php +++ b/usr/local/www/vpn_pppoe.php @@ -43,6 +43,7 @@ $pconfig['radiusenable'] = isset($pppoecfg['radius']['enable']); $pconfig['radacct_enable'] = isset($pppoecfg['radius']['accounting']); $pconfig['radiusserver'] = $pppoecfg['radius']['server']; $pconfig['radiussecret'] = $pppoecfg['radius']['secret']; +$pconfig['radiusissueips'] = $pppoecfg['radius']['radiusissueips']; $pconfig['n_pppoe_units'] = $pppoecfg['n_pppoe_units']; if ($_POST) { @@ -108,6 +109,11 @@ if ($_POST) { else unset($pppoecfg['radius']['accounting']); + if($_POST['radiusissueips'] == "yes") + $pppoecfg['radius']['radiusissueips'] = true; + else + unset($pppoecfg['radius']['radiusissueips']); + write_config(); $retval = 0; @@ -279,6 +285,14 @@ function enable_change(enable_over) { to the RADIUS server.</td> </tr> <tr> + <td width="22%" valign="top" class="vncell">RADIUS issued IP's</td> + <td width="78%" valign="top" class="vtable"> + <input name="radiusissueips" type="checkbox" class="formfld" id="radiusissueips"<?php if(isset($pconfig['radiusissueips'])) echo " CHECKED"; ?>> + <br>Issue IP Addresses via RADIUS server. + + </td> + </tr> + <tr> <td height="16" colspan="2" valign="top"></td> </tr> <tr> |