SamDecrock / node-http-ntlm

Node.js module to authenticate using HTTP NTLM
MIT License
192 stars 89 forks source link

Failed fetching data from exchange server #14

Closed delapecci closed 9 years ago

delapecci commented 10 years ago

Hi, Sam I try to fetch data from exchange server with your great library with the following options: { 'url' : 'https://email.mydomain.com/ews/exchange.asmx', 'username': 'domain\myusername', 'password': 'mypassword' } but always get such error: { [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }

Would you please help me how should I set the connection options here?

SamDecrock commented 9 years ago

ECONNRESET means that the server is disconnecting you. You should look at the logs of your server (if you have access to them off course)

However, I don't think your username should be like domain\myusername but rather myusername ;-) If you need to enter your domain, do it like this:

httpntlm.get({
    url: 'https://email.mydomain.com/ews/exchange.asmx',
    domain: 'domain',
    username: 'myusername',
    password: 'mypassword',
    workstation: 'yourcomputername'
});