Skip to content

Commit

Permalink
[Web] set default LDAP options on get
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddleSpl0it committed Mar 8, 2024
1 parent e0bda6c commit 0807c12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data/web/inc/functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 0807c12

Please sign in to comment.