title: NTLM Authentication with request-ntlm
body: <p>I'm using <strong>request-ntlm</strong> package on my Node middleware to make connection to a distant Azure server. My credentials are valid since the connection is working in Insomnia (a REST client), but I keep having the same error while connecting from Node:</p>
  
  <pre><code>events.js:176
  domain.enter();
         ^
  
  TypeError: domain.enter is not a function
      at Request.emit (events.js:176:12)
      at Request.start (C:\Users\DJ5629\Documents\powerbi\node_modules\request\req
  uest.js:750:10)
      at Request.end (C:\Users\DJ5629\Documents\powerbi\node_modules\request\reque
  st.js:1512:10)
      at end (C:\Users\DJ5629\Documents\powerbi\node_modules\request\request.js:56
  1:14)
      at Immediate.&lt;anonymous&gt; (C:\Users\DJ5629\Documents\powerbi\node_modules\req
  uest\request.js:575:7)
      at runCallback (timers.js:672:20)
      at tryOnImmediate (timers.js:645:5)
      at processImmediate [as _immediateCallback] (timers.js:617:5)
  </code></pre>
  
  <p>Here is the code I'm using to make the NTLM request:</p>
  
  <pre><code>let opts = {
      url: api+'Contracts/getAll',
      headers: {
        'accept': 'application/json'
      },
      workstation: 'WRKSTN',
      domain: 'arandom.domain.com'
  
    }
  
    ntlm.get(opts, function(err,response){
      if(!error){
        res.status(response.statusCode).send(response);
      } else {
        res.status(response.statusCode);
      }
    })
  </code></pre>
  
  <p>This error is only thrown when I give a domain name in the options, however I don't get any answer when I remove the <strong>domain</strong> property.</p>
  
  <p>System information:
   - Windows 7 Enterprise Edition
   - Node v6.11.4</p>
  
  <p>Thanks for your help</p>