From 52c9f9faafec960a9016fd9b41f32660beff61a2 Mon Sep 17 00:00:00 2001 From: Ermal Date: Wed, 14 Nov 2012 19:31:09 +0000 Subject: Allow other system authentication types to be used with ipsec. LDAP/RADIUS/local acc --- usr/local/www/vpn_ipsec_mobile.php | 46 +++++++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 15 deletions(-) (limited to 'usr/local') diff --git a/usr/local/www/vpn_ipsec_mobile.php b/usr/local/www/vpn_ipsec_mobile.php index 539b483..10a96b2 100755 --- a/usr/local/www/vpn_ipsec_mobile.php +++ b/usr/local/www/vpn_ipsec_mobile.php @@ -186,7 +186,8 @@ if ($_POST['submit']) { if ($pconfig['enable']) $client['enable'] = true; - $client['user_source'] = $pconfig['user_source']; + if (!empty($pconfig['user_source'])) + $client['user_source'] = implode(",", $pconfig['user_source']); $client['group_source'] = $pconfig['group_source']; if ($pconfig['pool_enable']) { @@ -376,24 +377,39 @@ function login_banner_change() { + + + + + + :   - + \n"; + {$auth_server['name']}\n"; + } + ?> -- cgit v1.1