summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal Luçi <ermal.luci@gmail.com>2011-07-27 13:19:14 -0700
committerErmal Luçi <ermal.luci@gmail.com>2011-07-27 13:19:14 -0700
commit5d6bade495483d81dee13b429b95867cd87c2236 (patch)
tree7560b6467dbfb8bcc1e6a6945ff2999733aea710 /usr
parent1fb8d3140624206d6c455f9247a2f1671c23c26c (diff)
parentf9199cd3ac0b38770e672f5fbda64d7eead036e8 (diff)
downloadpfsense-5d6bade495483d81dee13b429b95867cd87c2236.zip
pfsense-5d6bade495483d81dee13b429b95867cd87c2236.tar.gz
Merge pull request #8 from ninja76/master
IPSec xAuth allowing LDAP to be used as a backend
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/vpn_ipsec_mobile.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/usr/local/www/vpn_ipsec_mobile.php b/usr/local/www/vpn_ipsec_mobile.php
index b4b1b05..f0df0b7 100755
--- a/usr/local/www/vpn_ipsec_mobile.php
+++ b/usr/local/www/vpn_ipsec_mobile.php
@@ -355,7 +355,19 @@ function login_banner_change() {
<td width="78%" class="vtable">
<?=gettext("Source"); ?>:&nbsp;&nbsp;
<select name="user_source" class="formselect" id="user_source">
- <option value="system"><?=gettext("system"); ?></option>
+ <option value="system" <?php if ($pconfig['user_source'] == 'system') echo "selected"; ?>><?=gettext("system"); ?></option>
+ <?
+ if (isset($config['system']['authserver']))
+ {
+ foreach ($config['system']['authserver'] as $authcfg) {
+ if ($authcfg['type'] == 'ldap') {
+ $selected = "";
+ if ($pconfig['user_source'] == $authcfg['name']) $selected = "selected";
+ print '<option value="'.$authcfg['name'].'" '. $selected.'>'.$authcfg['name'].'</option>';
+ }
+ }
+ }
+ ?>
</select>
</td>
</tr>
OpenPOWER on IntegriCloud