summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-11-28 15:57:29 -0500
committersullrich <sullrich@pfsense.org>2009-11-28 15:57:29 -0500
commitd11c1f931a20d2d9ed692b396787cab55a5ff68b (patch)
treeeea433f8ed1e9f836aeaf100f6ee1e35438f5d3f /usr/local
parent30c4ae8a6bf91f7656f07d80f2e8cafb83d1113a (diff)
downloadpfsense-d11c1f931a20d2d9ed692b396787cab55a5ff68b.zip
pfsense-d11c1f931a20d2d9ed692b396787cab55a5ff68b.tar.gz
Add radius mac formatting GUI bits. The backend bits where already present. Resolves #178
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/services_captiveportal.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php
index 3f4613a..545132c 100755
--- a/usr/local/www/services_captiveportal.php
+++ b/usr/local/www/services_captiveportal.php
@@ -91,6 +91,7 @@ $pconfig['radiuskey'] = $config['captiveportal']['radiuskey'];
$pconfig['radiuskey2'] = $config['captiveportal']['radiuskey2'];
$pconfig['radiusvendor'] = $config['captiveportal']['radiusvendor'];
$pconfig['radiussession_timeout'] = isset($config['captiveportal']['radiussession_timeout']);
+$pconfig['radmac_format'] = $config['captiveportal']['radmac_format'];
if ($_POST) {
@@ -187,6 +188,7 @@ if ($_POST) {
$config['captiveportal']['radiuskey2'] = $_POST['radiuskey2'];
$config['captiveportal']['radiusvendor'] = $_POST['radiusvendor'] ? $_POST['radiusvendor'] : false;
$config['captiveportal']['radiussession_timeout'] = $_POST['radiussession_timeout'] ? true : false;
+ $config['captiveportal']['radmac_format'] = $_POST['radmac_format'] ? $_POST['radmac_format'] : false;
/* file upload? */
if (is_uploaded_file($_FILES['htmlfile']['tmp_name']))
@@ -236,6 +238,7 @@ function enable_change(enable_change) {
document.iform.auth_method[2].disabled = endis;
document.iform.radmac_enable.disabled = radius_endis;
document.iform.httpslogin_enable.disabled = endis;
+ document.iform.radmac_format.disabled = radius_endis;
document.iform.httpsname.disabled = endis;
document.iform.cert.disabled = endis;
document.iform.key.disabled = endis;
@@ -516,6 +519,29 @@ value="<?=htmlspecialchars($pconfig['radiuskey2']);?>"></td>
</tr>
</table>
</tr>
+ <tr>
+ <td class="vncell" valign="top">MAC address format</td>
+ <td class="vtable">
+ <select name="radmac_format" id="radmac_format">
+ <option>default</option>
+ <?php
+ $macformats = array("singledash","ietf","cisco","unformatted");
+ foreach ($macformats as $macformat) {
+ if ($pconfig['radmac_format'] == $macformat)
+ echo "<option selected value=\"$macformat\">$macformat</option>\n";
+ else
+ echo "<option value=\"$macformat\">$macformat</option>\n";
+ }
+ ?>
+ </select></br>
+ This option changes the MAC address format used in the whole RADIUS system. Change this if you also
+ need to change the username format for RADIUS MAC authentication.<br>
+ default: 00:11:22:33:44:55<br>
+ singledash: 001122-334455<br>
+ ietf: 00-11-22-33-44-55<br>
+ cisco: 0011.2233.4455<br>
+ unformatted: 001122334455
+ </tr>
<tr>
<td valign="top" class="vncell">HTTPS login</td>
<td class="vtable">
OpenPOWER on IntegriCloud