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-14 12:28:04 +0100 |
commit | 10e2acb5f02ec54562d7d8d08ff0be71d5df640d (patch) | |
tree | 80480404a1c99261eade18ee091777cf10570700 /usr/local/www/vpn_ipsec_keys.php | |
parent | 5526efab3d2c0ae8e4bcf760ffdb98b604a6113a (diff) | |
download | pfsense-10e2acb5f02ec54562d7d8d08ff0be71d5df640d.zip pfsense-10e2acb5f02ec54562d7d8d08ff0be71d5df640d.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.php')
-rw-r--r-- | usr/local/www/vpn_ipsec_keys.php | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/usr/local/www/vpn_ipsec_keys.php b/usr/local/www/vpn_ipsec_keys.php index a9bd0f0..ebddcc9 100644 --- a/usr/local/www/vpn_ipsec_keys.php +++ b/usr/local/www/vpn_ipsec_keys.php @@ -52,7 +52,7 @@ $a_secret = &$config['ipsec']['mobilekey']; $userkeys = array(); foreach ($config['system']['user'] as $id => $user) { if (!empty($user['ipsecpsk'])) { - $userkeys[] = array('ident' => $user['name'], 'pre-shared-key' => $user['ipsecpsk'], 'id' => $id);; + $userkeys[] = array('ident' => $user['name'], 'type' => 'PSK', 'pre-shared-key' => $user['ipsecpsk'], 'id' => $id);; } } @@ -110,6 +110,7 @@ if (is_subsystem_dirty('ipsec')) <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0" summary="main area"> <tr> <td class="listhdrr"><?=gettext("Identifier"); ?></td> + <td class="listhdrr"><?=gettext("Type"); ?></td> <td class="listhdr"><?=gettext("Pre-Shared Key"); ?></td> <td class="list"> <table border="0" cellspacing="0" cellpadding="1" summary="add key"> @@ -130,6 +131,14 @@ if (is_subsystem_dirty('ipsec')) echo htmlspecialchars($secretent['ident']); ?> </td> + <td class="listlr gray"> + <?php + if (empty($secretent['type'])) + echo 'PSK'; + else + echo htmlspecialchars($secretent['type']); + ?> + </td> <td class="listr gray"> <?=htmlspecialchars($secretent['pre-shared-key']);?> </td> @@ -150,6 +159,14 @@ if (is_subsystem_dirty('ipsec')) <td class="listlr"> <?=htmlspecialchars($secretent['ident']);?> </td> + <td class="listlr"> + <?php + if (empty($secretent['type'])) + echo 'PSK'; + else + echo htmlspecialchars($secretent['type']); + ?> + </td> <td class="listr"> <?=htmlspecialchars($secretent['pre-shared-key']);?> </td> @@ -158,7 +175,7 @@ if (is_subsystem_dirty('ipsec')) </tr> <?php $i++; endforeach; ?> <tr> - <td class="list" colspan="2"></td> + <td class="list" colspan="3"></td> <td class="list"> <table border="0" cellspacing="0" cellpadding="1" summary="add key"> <tr> |