From a38114ee65777cd2ca1d36581e15271e9588880d Mon Sep 17 00:00:00 2001
From: daniel <daniel.barbero@artica.es>
Date: Tue, 16 Aug 2016 15:35:02 +0200
Subject: [PATCH] ticket integria: 3981 fixed error in autentication active
 directory download collections #23

---
 pandora_console/include/get_file.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pandora_console/include/get_file.php b/pandora_console/include/get_file.php
index d5087827c9..76629296b8 100644
--- a/pandora_console/include/get_file.php
+++ b/pandora_console/include/get_file.php
@@ -26,7 +26,8 @@ check_login ();
 
 $auth_method = db_get_value('value', 'tconfig', 'token', 'auth');
 
-require_once("auth/" . $auth_method . ".php");
+if($auth_method != 'ad')
+	require_once("auth/" . $auth_method . ".php");