mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
fixed error in ldap create new users
This commit is contained in:
parent
2abff60380
commit
a5055ec27a
@ -637,10 +637,7 @@ function ldap_process_user_login ($login, $password) {
|
||||
$ldap_base_dn = isset($config["ldap_base_dn"]) ? "," . io_safe_output($config["ldap_base_dn"]) : '';
|
||||
|
||||
if (strlen($password) == 0 ||
|
||||
!@ldap_bind($ds,
|
||||
$ldap_login_attr. io_safe_output($login) . $ldap_base_dn,
|
||||
$password)) {
|
||||
|
||||
!@ldap_bind($ds, io_safe_output($login), $password) ) {
|
||||
$config["auth_error"] = 'User not found in database or incorrect password';
|
||||
@ldap_close ($ds);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user