Fix entities ldap admin pass

This commit is contained in:
Calvo 2022-10-25 18:46:49 +02:00
parent 406dac28c4
commit 36f58579be
1 changed files with 3 additions and 0 deletions

View File

@ -846,6 +846,9 @@ function ldap_process_user_login($login, $password, $secondary_server=false)
$ldap[$token] = $secondary_server === true ? $config[$token.'_secondary'] : $config[$token];
}
// Remove entities ldap admin pass.
$ldap['ldap_admin_pass'] = io_safe_output($ldap['ldap_admin_pass']);
// Connect to the LDAP server
if (stripos($ldap['ldap_server'], 'ldap://') !== false
|| stripos($ldap['ldap_server'], 'ldaps://') !== false