#13085 added new input password in secondary ldap
This commit is contained in:
parent
f32fc84bd3
commit
87c61fd015
|
@ -362,14 +362,20 @@ if (is_ajax() === true) {
|
||||||
$row['name'] = __('Admin secondary LDAP password');
|
$row['name'] = __('Admin secondary LDAP password');
|
||||||
$row['control'] = html_print_input_password(
|
$row['control'] = html_print_input_password(
|
||||||
'ldap_admin_pass_secondary',
|
'ldap_admin_pass_secondary',
|
||||||
io_output_password($config['ldap_admin_pass_secondary']),
|
(empty(io_output_password($config['ldap_admin_pass_secondary'])) === false) ? '*****' : '',
|
||||||
$alt = '',
|
$alt = '',
|
||||||
60,
|
60,
|
||||||
100,
|
100,
|
||||||
true,
|
true,
|
||||||
false,
|
false,
|
||||||
false,
|
false,
|
||||||
'w400px-important'
|
'w400px-important',
|
||||||
|
'on',
|
||||||
|
false,
|
||||||
|
'',
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
true
|
||||||
);
|
);
|
||||||
$table->data['ldap_admin_pass_secondary'] = $row;
|
$table->data['ldap_admin_pass_secondary'] = $row;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -741,8 +741,10 @@ function config_update_config()
|
||||||
$error_update[] = __('Admin secondary LDAP login');
|
$error_update[] = __('Admin secondary LDAP login');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config_update_value('ldap_admin_pass_secondary', get_parameter('ldap_admin_pass_secondary'), true, true) === false) {
|
if ((bool) get_parameter('ldap_admin_pass_secondary_password_changed', false) === true) {
|
||||||
$error_update[] = __('Admin secondary LDAP password');
|
if (config_update_value('ldap_admin_pass_secondary', get_parameter('ldap_admin_pass_secondary'), true, true) === false) {
|
||||||
|
$error_update[] = __('Admin LDAP password secondary');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config_update_value('fallback_local_auth', get_parameter('fallback_local_auth'), true) === false) {
|
if (config_update_value('fallback_local_auth', get_parameter('fallback_local_auth'), true) === false) {
|
||||||
|
|
Loading…
Reference in New Issue