1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-23 02:04:46 +02:00

[Web] set default LDAP options on get

This commit is contained in:
FreddleSpl0it 2024-03-08 15:11:49 +01:00
parent e0bda6ca6a
commit 0807c122f6
No known key found for this signature in database
GPG Key ID: 00E14E7634F4BEC5

View File

@ -2143,6 +2143,12 @@ function identity_provider($_action = null, $_data = null, $_extra = null) {
$settings['client_secret'] = '';
$settings['access_token'] = '';
}
// return default ldap options
if ($settings["authsource"] == "ldap"){
$settings['use_ssl'] = !isset($settings['use_ssl']) ? false : $settings['use_ssl'];
$settings['use_tls'] = !isset($settings['use_tls']) ? false : $settings['use_tls'];
$settings['ignore_ssl_errors'] = !isset($settings['ignore_ssl_errors']) ? false : $settings['ignore_ssl_errors'];
}
return $settings;
break;
case 'edit':