# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- a/src/common/sites/all/modules/contrib/tmgmt_globalsight/tmgmt_globalsight.globalsight.inc
+++ b/src/common/sites/all/modules/contrib/tmgmt_globalsight/tmgmt_globalsight.globalsight.inc
@@ -31,6 +31,9 @@
    *   Translator which has the connection settings.
    */
   function __construct(TMGMTTranslator $translator) {
+    
+    global $conf;
+    
     $this->endpoint = $translator->getSetting('endpoint');
     $this->username = $translator->getSetting('username');
     $this->password = $translator->getSetting('password');
@@ -43,7 +46,16 @@
 
     $this->webservice = new nusoap_client(GLOBALSIGHT_WSDL_URL, TRUE);
     $this->webservice->setEndpoint($this->endpoint);
+    
+    // for testing purpose
+    if (isset($conf['globalsight_wsdl_apache_authtype'])) {
+      $this->webservice->username = $conf['globalsight_wsdl_apache_username'];
+      $this->webservice->password = $conf['globalsight_wsdl_apache_pass'];
+      $this->webservice->authtype = $conf['globalsight_wsdl_apache_authtype'];
   }
+  }
 
   /**
    * Login method sends access parameters to Globalsight and, upon success, receives access token.
