clncln1 / node-ntlm-client

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

ntlm-client

A node.js NTLM client with support for NTLM and NTLMv2 authentication

npm install ntlm-client

API

request(options)

A convenience function that tries to authenticate against a given URL using the request module. If NTLM is not supported, it will fallback to Basic Auth.


createType1Message([workstation, target])

Creates a type 1 NTLM message to initialize the NTLM handshake


decodeType2Message(str)

Decodes a type 2 message received from the server including the NTLM challenge


createType3Message(type2Message, username, password[, workstation, target])

Creates a type 3 message based on the type 2 message received from the server.