diff --git a/core/authentication/resources/classes/plugins/ldap.php b/core/authentication/resources/classes/plugins/ldap.php index a773ba3c3d..78d58e2fa7 100644 --- a/core/authentication/resources/classes/plugins/ldap.php +++ b/core/authentication/resources/classes/plugins/ldap.php @@ -84,7 +84,7 @@ class plugin_ldap { if ($user_authorized) { $sql = "select * from v_users "; $sql .= "where username=:username "; - if ($_SESSION["user"]["unique"]["text"] == "global") { + if ($_SESSION["users"]["unique"]["text"] == "global") { //unique username - global (example: email address) } else { @@ -92,7 +92,7 @@ class plugin_ldap { $sql .= "and domain_uuid=:domain_uuid "; } $prep_statement = $db->prepare(check_sql($sql)); - if ($_SESSION["user"]["unique"]["text"] != "global") { + if ($_SESSION["users"]["unique"]["text"] != "global") { $prep_statement->bindParam(':domain_uuid', $this->domain_uuid); } $prep_statement->bindParam(':username', $this->username); @@ -100,7 +100,7 @@ class plugin_ldap { $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); if (count($result) > 0) { foreach ($result as &$row) { - if ($_SESSION["user"]["unique"]["text"] == "global" && $row["domain_uuid"] != $this->domain_uuid) { + if ($_SESSION["users"]["unique"]["text"] == "global" && $row["domain_uuid"] != $this->domain_uuid) { //get the domain uuid $this->domain_uuid = $row["domain_uuid"]; $this->domain_name = $_SESSION['domains'][$this->domain_uuid]['domain_name'];