SamDecrock / node-http-ntlm

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

Can't post to specific host #80

Closed AmitBaranes closed 1 year ago

AmitBaranes commented 5 years ago

Hey, when trying to post to a specific machine getting 401.

Example : const url = https://MACHINENAME.DOMAIN.COM/exampleService.svc;

response body :

<h2>401 - Unauthorized: Access is denied due to invalid credentials.</h2>
<h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>

this is weird since i do see the NTLM Authorization header.

when i was trying to post to the URL without the server name in the URL , I was able to get 200 from to server.

Example :

const url = https://exampleService.com/exampleService.svc;

Please advise. Thanks, Amit.

nazywamsiepawel commented 5 years ago

+1

SamDecrock commented 1 year ago

Make sure MACHINENAME.DOMAIN.COM is resolvable. I'm closing this ticket for now. Reopen it if you want to.