diff options
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r-- | etc/inc/vpn.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 407a490..6bf55b8 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -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; } } |