Merge branch 'ent-11416-metaconsole-ad-user-delayed-login-in-node-with-recursive-groups-option-enabled' into 'develop'

Ent 11416 metaconsole ad user delayed login in node with recursive groups option enabled

See merge request artica/pandorafms!6015
This commit is contained in:
Rafael Ameijeiras 2023-06-01 14:56:16 +00:00
commit 762d82fad3
1 changed files with 8 additions and 0 deletions

View File

@ -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);
}