diff options
author | Ermal <eri@pfsense.org> | 2014-05-09 19:41:17 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-05-09 19:41:17 +0000 |
commit | f1bede03435250bb789a5362273af5d43c3f7430 (patch) | |
tree | 3646398c7d48a915aff046424a50cc1ef7325ca8 /usr/local/www/vpn_ipsec_keys.php | |
parent | e8177bbbd0d6b5d47b897a245902261fa838c1f0 (diff) | |
download | pfsense-f1bede03435250bb789a5362273af5d43c3f7430.zip pfsense-f1bede03435250bb789a5362273af5d43c3f7430.tar.gz |
Allow a key to specified for all users as for exmpale when connecting from Apple iOS
Diffstat (limited to 'usr/local/www/vpn_ipsec_keys.php')
-rw-r--r-- | usr/local/www/vpn_ipsec_keys.php | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/usr/local/www/vpn_ipsec_keys.php b/usr/local/www/vpn_ipsec_keys.php index 51105b0..5881194 100644 --- a/usr/local/www/vpn_ipsec_keys.php +++ b/usr/local/www/vpn_ipsec_keys.php @@ -49,11 +49,7 @@ $a_secret = &$config['ipsec']['mobilekey']; $userkeys = array(); foreach ($config['system']['user'] as $id => $user) { if (!empty($user['ipsecpsk'])) { - $k = array(); - $k["ident"] = $user['name']; - $k["pre-shared-key"] = $user['ipsecpsk']; - $k["id"] = $id; - $userkeys[] = $k; + $userkeys[] = array('ident' => $user['name'], 'pre-shared-key' => $user['ipsecpsk'], 'id' => $id);; } } @@ -115,7 +111,12 @@ if (is_subsystem_dirty('ipsec')) <?php $i = 0; foreach ($userkeys as $secretent): ?> <tr> <td class="listlr gray"> - <?=htmlspecialchars($secretent['ident']);?> + <?php + if ($secretent['ident'] == 'allusers') + echo gettext("ANY USER"); + else + echo htmlspecialchars($secretent['ident']); + ?> </td> <td class="listr gray"> <?=htmlspecialchars($secretent['pre-shared-key']);?> @@ -152,6 +153,18 @@ if (is_subsystem_dirty('ipsec')) </div> </td> </tr> + <tr> + <td colspan="4"> + <p> + <span class="vexpl"> + <span class="red"> + <strong><?=gettext("Note"); ?>:<br /></strong> + </span> + <?=gettext("PSK for any user can be set by using an identifier of any/ANY");?> + </span> + </p> + </td> + </tr> </table> </form> <?php include("fend.inc"); ?> |