diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-01-14 12:27:48 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-01-15 09:29:40 +0100 |
commit | f579c0fb422b5db64392d636f1977ee093553698 (patch) | |
tree | 41407fd357ed1a975579c6027ab45551b2835ea7 /usr/local/www/vpn_ipsec_keys_edit.php | |
parent | 88a46519d9b3eec4b8433c394d87e09963c6a9d0 (diff) | |
download | pfsense-f579c0fb422b5db64392d636f1977ee093553698.zip pfsense-f579c0fb422b5db64392d636f1977ee093553698.tar.gz |
Add EAP-MSChapv2 implementation for Windows ipsec support as reported here https://forum.pfsense.org/index.php?topic=81657.15
Diffstat (limited to 'usr/local/www/vpn_ipsec_keys_edit.php')
-rw-r--r-- | usr/local/www/vpn_ipsec_keys_edit.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/usr/local/www/vpn_ipsec_keys_edit.php b/usr/local/www/vpn_ipsec_keys_edit.php index 741f4ed..82ab80c 100644 --- a/usr/local/www/vpn_ipsec_keys_edit.php +++ b/usr/local/www/vpn_ipsec_keys_edit.php @@ -55,6 +55,7 @@ if (isset($_POST['id']) && is_numericint($_POST['id'])) if (isset($id) && $a_secret[$id]) { $pconfig['ident'] = $a_secret[$id]['ident']; + $pconfig['type'] = $a_secret[$id]['type']; $pconfig['psk'] = $a_secret[$id]['pre-shared-key']; } @@ -99,6 +100,7 @@ if ($_POST) { $secretent = $a_secret[$id]; $secretent['ident'] = $_POST['ident']; + $secretent['type'] = $_POST['type']; $secretent['pre-shared-key'] = $_POST['psk']; $text = ""; @@ -130,6 +132,9 @@ include("head.inc"); <?php if ($input_errors) print_input_errors($input_errors); ?> <form action="vpn_ipsec_keys_edit.php" method="post" name="iform" id="iform"> <table width="100%" border="0" cellpadding="6" cellspacing="0" summary="vpn ipsec keys edit"> + <tr> + <td colspan="2" valign="top" class="listtopic">Edit pre-shared secret</td> + </tr> <tr> <td valign="top" class="vncellreq"><?=gettext("Identifier"); ?></td> <td class="vtable"> @@ -139,6 +144,21 @@ include("head.inc"); </td> </tr> <tr> + <td width="22%" valign="top" class="vncellreq"><?=gettext("Secret type"); ?></td> + <td width="78%" class="vtable"> + <select name="type" class="formselect"> + <?php + foreach ($ipsec_preshared_key_type as $value => $descr) { + echo "<option value='{$value}' "; + if ($pconfig['type'] == $value) + echo "selected=\"selected\""; + echo ">{$descr}</option>"; + } + ?> + </select> + </td> + </tr> + <tr> <td width="22%" valign="top" class="vncellreq"><?=gettext("Pre-Shared Key"); ?></td> <td width="78%" class="vtable"> <?=$mandfldhtml;?><input name="psk" type="text" class="formfld unknown" id="psk" size="40" value="<?=htmlspecialchars($pconfig['psk']);?>" /> |