From a5055ec27a21486e01b4db682e66035f02903b50 Mon Sep 17 00:00:00 2001 From: daniel Date: Tue, 21 Feb 2017 14:04:53 +0100 Subject: [PATCH] fixed error in ldap create new users --- pandora_console/include/auth/mysql.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pandora_console/include/auth/mysql.php b/pandora_console/include/auth/mysql.php index f5d5e98d8e..ad1c3cb650 100644 --- a/pandora_console/include/auth/mysql.php +++ b/pandora_console/include/auth/mysql.php @@ -636,11 +636,8 @@ function ldap_process_user_login ($login, $password) { $ldap_login_attr = isset($config["ldap_login_attr"]) ? io_safe_output($config["ldap_login_attr"]) . "=" : ''; $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)) { - + if (strlen($password) == 0 || + !@ldap_bind($ds, io_safe_output($login), $password) ) { $config["auth_error"] = 'User not found in database or incorrect password'; @ldap_close ($ds);