diff options
author | Ermal Luçi <ermal.luci@gmail.com> | 2011-07-27 13:19:14 -0700 |
---|---|---|
committer | Ermal Luçi <ermal.luci@gmail.com> | 2011-07-27 13:19:14 -0700 |
commit | 5d6bade495483d81dee13b429b95867cd87c2236 (patch) | |
tree | 7560b6467dbfb8bcc1e6a6945ff2999733aea710 /usr/local | |
parent | 1fb8d3140624206d6c455f9247a2f1671c23c26c (diff) | |
parent | f9199cd3ac0b38770e672f5fbda64d7eead036e8 (diff) | |
download | pfsense-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/local')
-rwxr-xr-x | usr/local/www/vpn_ipsec_mobile.php | 14 |
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"); ?>: <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> |