#10254 added timeout in active directory

This commit is contained in:
Daniel Cebrian 2023-06-13 13:20:28 +02:00
parent 8678df6982
commit 052852f2d1
2 changed files with 11 additions and 11 deletions

View File

@ -210,7 +210,7 @@ if (is_ajax() === true) {
// Ldapsearch timeout.
// Default Ldapsearch timeout.
set_when_empty($config['ldap_searh_timeout'], 5);
set_when_empty($config['ldap_search_timeout'], 5);
$row = [];
$row['name'] = __('Ldap search timeout (secs)');
$row['control'] = html_print_input_text(

View File

@ -639,16 +639,8 @@ function config_update_config()
$error_update[] = __('Secondary start TLS');
}
if (config_update_value('recursive_search_secondary', get_parameter('recursive_search_secondary'), true) === false) {
$error_update[] = __('Secondary recursive search');
}
if (config_update_value('ad_advanced_config_secondary', get_parameter('ad_advanced_config_secondary'), true) === false) {
$error_update[] = __('Secondary advanced Config AD');
}
if (config_update_value('ldap_advanced_config_secondary', get_parameter('ldap_advanced_config_secondary'), true) === false) {
$error_update[] = __('Secondary advanced Config LDAP');
if (config_update_value('ad_search_timeout', get_parameter('ad_search_timeout'), true) === false) {
$error_update[] = __('AD search timeout');
}
if (config_update_value('ad_domain_secondary', get_parameter('ad_domain_secondary'), true) === false) {
@ -3114,6 +3106,14 @@ function config_process_config()
config_update_value('ad_port', 389);
}
if (!isset($config['ad_server_secondary'])) {
config_update_value('ad_server_secondary', 'localhost');
}
if (!isset($config['ad_port_secondary'])) {
config_update_value('ad_port_secondary', 389);
}
if (!isset($config['ad_start_tls'])) {
config_update_value('ad_start_tls', 0);
}