mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Improved ipsec ldap xauth
This commit is contained in:
parent
e3d357047c
commit
2c189c8cb1
@ -420,10 +420,11 @@ function vpn_ipsec_configure($ipchg = false)
|
||||
}
|
||||
/* end mode_cfg section */
|
||||
|
||||
if ($a_client['user_source'] = "ldap")
|
||||
if ($a_client['user_source'] != "system")
|
||||
{
|
||||
foreach ($config['system']['authserver'] as $authcfg) {
|
||||
if ($authcfg['type'] == 'ldap') {
|
||||
if ($authcfg['type'] == 'ldap' and $authcfg['name'] == $a_client['user_source'])
|
||||
{
|
||||
$thisauthcfg = $authcfg;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user