clncln1 / node-ntlm-client

A node.js NTLM client with support for NTLM and NTLMv2 authentication
MIT License
10 stars 23 forks source link

Update ntlmrequest.js #6

Open ricjd opened 6 years ago

ricjd commented 6 years ago

This helps if you are nocking the requests to the EWS server. If you nock the requests it generates a hash using your local machine name. Then using those auth headers, running them on a build server, the auth headers are different. This lets you specify the hostname of the machine so the hashes are always the same and match your nocked requests.

ricjd commented 6 years ago

@clncln1