From 4f1d5e217ab658a0237ee7895a0bff236522a71e Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Thu, 1 Jun 2023 12:00:46 +0200 Subject: [PATCH] #11416 Added recursive group search in AD --- pandora_console/include/functions_config.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index ec6b775434..468c228733 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -607,6 +607,10 @@ function config_update_config() $error_update[] = __('Start TLS'); } + if (config_update_value('recursive_search', get_parameter('recursive_search'), true) === false) { + $error_update[] = __('Recursive search'); + } + if (config_update_value('ad_advanced_config', get_parameter('ad_advanced_config'), true) === false) { $error_update[] = __('Advanced Config AD'); } @@ -3082,6 +3086,10 @@ function config_process_config() config_update_value('ad_start_tls', 0); } + if (!isset($config['recursive_search'])) { + config_update_value('recursive_search', 1); + } + if (!isset($config['ad_advanced_config'])) { config_update_value('ad_advanced_config', 0); }