From 709f17ee7f134d28be95a880e1cba55542a7999b Mon Sep 17 00:00:00 2001 From: "alejandro.campos@artica.es" Date: Mon, 21 Mar 2022 17:47:08 +0100 Subject: [PATCH] reverted changes --- pandora_console/include/auth/mysql.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pandora_console/include/auth/mysql.php b/pandora_console/include/auth/mysql.php index d4a5ea4ce2..b6d46a5c06 100644 --- a/pandora_console/include/auth/mysql.php +++ b/pandora_console/include/auth/mysql.php @@ -226,11 +226,6 @@ function process_user_login_remote($login, $pass, $api=false) switch ($config['auth']) { // LDAP case 'ldap': - // Use local authentication if user is global admin. - if (is_user_admin($login) === true) { - return false; - } - $sr = ldap_process_user_login($login, $pass); if (!$sr) { @@ -240,11 +235,6 @@ function process_user_login_remote($login, $pass, $api=false) // Active Directory case 'ad': - // Use local authentication if user is global admin. - if (is_user_admin($login) === true) { - return false; - } - if (enterprise_hook('ad_process_user_login', [$login, $pass]) === false) { $config['auth_error'] = 'User not found in database or incorrect password'; return false;