summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorBryan Haase <bryan.haase@gmail.com>2011-07-27 08:47:10 -0500
committerBryan Haase <bryan.haase@gmail.com>2011-07-27 08:47:10 -0500
commit2c189c8cb110bc293acbb88c6930e636e19db5d4 (patch)
tree6b17b3561e896ff3e943cc0e30cfc40373cef7df /usr/local
parente3d357047cfb5e12d9dc1cb4121d20f604c8a29a (diff)
downloadpfsense-2c189c8cb110bc293acbb88c6930e636e19db5d4.zip
pfsense-2c189c8cb110bc293acbb88c6930e636e19db5d4.tar.gz
Improved ipsec ldap xauth
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/vpn_ipsec_mobile.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/vpn_ipsec_mobile.php b/usr/local/www/vpn_ipsec_mobile.php
index 34b72d1..9d81c53 100755
--- a/usr/local/www/vpn_ipsec_mobile.php
+++ b/usr/local/www/vpn_ipsec_mobile.php
@@ -358,11 +358,13 @@ function login_banner_change() {
<?
foreach ($config['system']['authserver'] as $authcfg) {
if ($authcfg['type'] == 'ldap') {
- print '<option value="ldap">ldap</option>';
+ $selected = "";
+ if ($pconfig['user_source'] == $authcfg['name']) $selected = "selected";
+ print '<option value="'.$authcfg['name'].'" '. $selected.'>'.$authcfg['name'].'</option>';
}
}
?>
- <option value="system"><?=gettext("system"); ?></option>
+ <option value="system" <?php if ($pconfig['user_source'] == 'system') echo "selected"; ?>><?=gettext("system"); ?></option>
</select>
</td>
</tr>
OpenPOWER on IntegriCloud