I have configured NTLM & NTLM V2 authentication for SharePoint 2013 onpremise.
For NTLM auth, I am trying to consume REST APIs via httpntlm and it is working as expected with a successful response.
However, the httpntlm
not working with NTLM V2 and getting error as Unauthorized 401
.
I also tried ntlm-client which supports NTLM and NTLM V2 but not working and throwing an internal unexpected error.
UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1):
Error: The server didnt respond properly: Error: Invalid message signature: NTLM
at Object.decodeType2Message (..\node-ntlm-client\lib\ntlm.js:85:9)
at sendRequest (..\node-ntlm-client\lib\ntlmrequest.js:98:28)
I have followed setup-ntlm-v2 to setup NTLM V2 in my SharePoint 2013 system. please suggest.