{"_id":"ntlm-client","_rev":"9-c3b546a19e372e946f935a5aaba4a3b5","name":"ntlm-client","description":"A node.js NTLM client with support for NTLM and NTLMv2 authentication","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"ntlm-client","version":"0.0.1","description":"A node.js NTLM client with support for NTLM and NTLMv2 authentication","keywords":["ntlm","ntlmv2","client","authentication"],"main":"./lib/index.js","author":{"name":"Nico Haller","email":"nico.haller@gmail.com"},"repository":{"type":"git","url":"https://github.com/clncln1/node-ntlm-client.git"},"bugs":{"url":"https://github.com/clncln1/node-ntlm-client/issues"},"license":"MIT","dependencies":{"extend":"^3.0.0","request":"^2.66.0"},"gitHead":"ab452a06c3e0942ce272edca3cdae190c7d877be","homepage":"https://github.com/clncln1/node-ntlm-client","_id":"ntlm-client@0.0.1","scripts":{},"_shasum":"a921f71468f99b38c7e59260c1b0eaa2689f7739","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.2","_npmUser":{"name":"clncln1","email":"nico.haller@gmail.com"},"dist":{"shasum":"a921f71468f99b38c7e59260c1b0eaa2689f7739","tarball":"https://registry.npmjs.org/ntlm-client/-/ntlm-client-0.0.1.tgz","integrity":"sha512-2347mOenk0WEXy67MfxPnTaaP0YQrWK2NY6u9+SJCmJCo3FaNUz+OjON2kjKm3NRtHYuiC0TeMpHcUkM4mLYGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJFft+NAXMBIC6jixvAFGXfO2C/whc+whOwR+lmo4s5QIhAIMswiMiAoBlSPMh93yyX8DdTpgm4wsV1Ft6+F/ZoMhx"}]},"maintainers":[{"name":"clncln1","email":"nico.haller@gmail.com"}]},"0.0.2":{"name":"ntlm-client","version":"0.0.2","description":"A node.js NTLM client with support for NTLM and NTLMv2 authentication","keywords":["ntlm","ntlmv2","client","authentication"],"main":"./lib/index.js","author":{"name":"Nico Haller","email":"nico.haller@gmail.com"},"repository":{"type":"git","url":"https://github.com/clncln1/node-ntlm-client.git"},"bugs":{"url":"https://github.com/clncln1/node-ntlm-client/issues"},"engines":{"node":">=4.0.0"},"license":"MIT","dependencies":{"extend":"^3.0.0","request":"^2.66.0"},"gitHead":"e74e3a04db6a5f2143193292063b2258da93b4c8","homepage":"https://github.com/clncln1/node-ntlm-client","_id":"ntlm-client@0.0.2","scripts":{},"_shasum":"1df74d2f515cf6198e848ee4fc2a00e38cc9a1f5","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.2","_npmUser":{"name":"clncln1","email":"nico.haller@gmail.com"},"dist":{"shasum":"1df74d2f515cf6198e848ee4fc2a00e38cc9a1f5","tarball":"https://registry.npmjs.org/ntlm-client/-/ntlm-client-0.0.2.tgz","integrity":"sha512-TfVtmOSlF36w57Aatw9F2jC2xZGs7N5GzkiLFoU/2jfJXUCAMkDTdzG+Iftr7f52zpd0JWNwhi+OsoYxg+z35A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEK7tEhofvqVFAukO8xJKPr+Gq6A+/qFdLr8z+oGx4HBAiEAkahYCWUg8TBZqnc2E8nKNA/QTQd+TcunRMIKPv/UJf0="}]},"maintainers":[{"name":"clncln1","email":"nico.haller@gmail.com"}]},"0.0.3":{"name":"ntlm-client","version":"0.0.3","description":"A node.js NTLM client with support for NTLM and NTLMv2 authentication","keywords":["ntlm","ntlmv2","client","authentication"],"main":"./lib/index.js","author":{"name":"Nico Haller","email":"nico.haller@gmail.com"},"repository":{"type":"git","url":"https://github.com/clncln1/node-ntlm-client.git"},"bugs":{"url":"https://github.com/clncln1/node-ntlm-client/issues"},"engines":{"node":">=4.0.0"},"license":"MIT","dependencies":{"extend":"^3.0.0","request":"^2.66.0"},"gitHead":"d30cbd7849c318e7e8da82aa9a19a1f55322f921","homepage":"https://github.com/clncln1/node-ntlm-client","_id":"ntlm-client@0.0.3","scripts":{},"_shasum":"93632285c23db7c248ef3b74c1e1a7709a02279b","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.2","_npmUser":{"name":"clncln1","email":"nico.haller@gmail.com"},"dist":{"shasum":"93632285c23db7c248ef3b74c1e1a7709a02279b","tarball":"https://registry.npmjs.org/ntlm-client/-/ntlm-client-0.0.3.tgz","integrity":"sha512-T9xdVJtP5VOX79tiBN01wnG0AiE/XsvVT0iqASHcc2aL1EuMl6a49FG3ptOiTx67Iux4lYfK+TBmi8CRQLjWyw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBvDBzq6qvN57G6rpZkqISR0T6I8KRo8AXOuYSwne7vqAiAkD73XPnscPUzhIligm/KrtMIMg7KOV3opMPZVsIdAtQ=="}]},"maintainers":[{"name":"clncln1","email":"nico.haller@gmail.com"}]},"0.0.4":{"name":"ntlm-client","version":"0.0.4","description":"A node.js NTLM client with support for NTLM and NTLMv2 authentication","keywords":["ntlm","ntlmv2","client","authentication"],"main":"./lib/index.js","author":{"name":"Nico Haller","email":"nico.haller@gmail.com"},"repository":{"type":"git","url":"https://github.com/clncln1/node-ntlm-client.git"},"bugs":{"url":"https://github.com/clncln1/node-ntlm-client/issues"},"engines":{"node":">=4.0.0"},"license":"MIT","dependencies":{"extend":"^3.0.0","request":"^2.66.0"},"gitHead":"3131d390ab777a34b34229b5e4d311c3ea40ceb9","homepage":"https://github.com/clncln1/node-ntlm-client","_id":"ntlm-client@0.0.4","scripts":{},"_shasum":"633e687d491ada00256ad5da890120a82c7aeaff","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.2","_npmUser":{"name":"clncln1","email":"nico.haller@gmail.com"},"dist":{"shasum":"633e687d491ada00256ad5da890120a82c7aeaff","tarball":"https://registry.npmjs.org/ntlm-client/-/ntlm-client-0.0.4.tgz","integrity":"sha512-aUwve27zvIoncmcvzenMITxG6hMsci5FxQMaCaXNAd4sKsMBM/UJtJZNp38oGC2S8srcWbvnTBbB/rRAdfun+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGnz+L7AH/zCVM6DzXMBIuxlCeQeYScsLWSoVm4PyjQPAiEAkQDD720yFUCQzSY7hkmrdc5TPoc2DKUQFaGEzOFjqgc="}]},"maintainers":[{"name":"clncln1","email":"nico.haller@gmail.com"}]},"0.0.5":{"name":"ntlm-client","version":"0.0.5","description":"A node.js NTLM client with support for NTLM and NTLMv2 authentication","keywords":["ntlm","ntlmv2","client","authentication"],"main":"./lib/index.js","author":{"name":"Nico Haller","email":"nico.haller@gmail.com"},"repository":{"type":"git","url":"https://github.com/clncln1/node-ntlm-client.git"},"bugs":{"url":"https://github.com/clncln1/node-ntlm-client/issues"},"engines":{"node":">=4.0.0"},"license":"MIT","dependencies":{"extend":"^3.0.0","request":"^2.66.0"},"gitHead":"111b298c27409602404da237adea18a467033e2c","homepage":"https://github.com/clncln1/node-ntlm-client","_id":"ntlm-client@0.0.5","scripts":{},"_shasum":"bbb1fd17cb18d13ce45448d2c43b62be6589ea9d","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.2","_npmUser":{"name":"clncln1","email":"nico.haller@gmail.com"},"dist":{"shasum":"bbb1fd17cb18d13ce45448d2c43b62be6589ea9d","tarball":"https://registry.npmjs.org/ntlm-client/-/ntlm-client-0.0.5.tgz","integrity":"sha512-h8+b7NUATkgWzpVMRyZEu09oRYNBWwJZpMAV3z7rrbAAq3xRcQ26NiUhjECgS4JMYzEc4Hkla1339cjr3FdAGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFr+EQH2kFvgQFFDf8jseFkoAIhxDV2hQ6kvFudmClIgAiEAjO/TPv60QWV256Xsj3HJJjY0KKSOT+ti3iGkBKNZto0="}]},"maintainers":[{"name":"clncln1","email":"nico.haller@gmail.com"}]},"0.1.0":{"name":"ntlm-client","version":"0.1.0","description":"A node.js NTLM client with support for NTLM and NTLMv2 authentication","keywords":["ntlm","ntlmv2","client","authentication"],"main":"./lib/index.js","author":{"name":"Nico Haller","email":"nico.haller@gmail.com"},"repository":{"type":"git","url":"https://github.com/clncln1/node-ntlm-client.git"},"bugs":{"url":"https://github.com/clncln1/node-ntlm-client/issues"},"engines":{"node":">=4.0.0"},"license":"MIT","dependencies":{"extend":"^3.0.0","request":"^2.66.0"},"gitHead":"36b99decd52f774d91f2049201e8e875e48c3956","homepage":"https://github.com/clncln1/node-ntlm-client","_id":"ntlm-client@0.1.0","scripts":{},"_shasum":"303a75e8681a5859c0d40b9786db1099ffd0a205","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"clncln1","email":"nico.haller@gmail.com"},"dist":{"shasum":"303a75e8681a5859c0d40b9786db1099ffd0a205","tarball":"https://registry.npmjs.org/ntlm-client/-/ntlm-client-0.1.0.tgz","integrity":"sha512-LgA1OEFGhYArPUS6tALDgs5096Vv57DSNH4T1vEOGuk6r1ILZ95f2OrnBQx7zAnOFfxwc+18ml+NZaPNXn9bVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID1nnWMpjzd9dBF8MvMIOoclHWAHeHbVZaajdjkmM6CQAiEAuAGgTpbwsO0HTDv8CfF5egXUB6UBAqmHQNJC0v0zxKQ="}]},"maintainers":[{"name":"clncln1","email":"nico.haller@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/ntlm-client-0.1.0.tgz_1461517046154_0.23740329104475677"}},"0.1.1":{"name":"ntlm-client","version":"0.1.1","description":"A node.js NTLM client with support for NTLM and NTLMv2 authentication","keywords":["ntlm","ntlmv2","client","authentication"],"main":"./lib/index.js","author":{"name":"Nico Haller","email":"nico.haller@gmail.com"},"repository":{"type":"git","url":"https://github.com/clncln1/node-ntlm-client.git"},"bugs":{"url":"https://github.com/clncln1/node-ntlm-client/issues"},"engines":{"node":">=4.0.0"},"license":"MIT","dependencies":{"extend":"^3.0.0","request":"^2.66.0"},"gitHead":"0b36c784ff2b56397ab98f8257f8fc75d24a42e0","homepage":"https://github.com/clncln1/node-ntlm-client","_id":"ntlm-client@0.1.1","scripts":{},"_shasum":"b74e1df09b03524fe540863990d9c6187203d7fd","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"clncln1","email":"nico.haller@gmail.com"},"dist":{"shasum":"b74e1df09b03524fe540863990d9c6187203d7fd","tarball":"https://registry.npmjs.org/ntlm-client/-/ntlm-client-0.1.1.tgz","integrity":"sha512-BQVZp+qB0i6CyWyzAKKcMBmiC9g18gbDcFaXU6Qp0Qygc9S4r9A9XawMTSbX0+kw3mvQjYVxs93l1IDjyEfb1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFiCY/4TSgNRhNKyYByU07HRd9mvHXRfrI6rN8uHTGNXAiBlogdnR966C6G2FdAWmCu+ZtBhJ/e62AG2TDRukxbXuw=="}]},"maintainers":[{"name":"clncln1","email":"nico.haller@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/ntlm-client-0.1.1.tgz_1464797392334_0.9801113232970238"}}},"readme":"# ntlm-client\n\nA node.js NTLM client with support for NTLM and NTLMv2 authentication\n\n```\nnpm install ntlm-client\n```\n\n## API\n\n#### request(options)\n\nA convenience function that tries to authenticate against a given URL using the `request` module.\nIf NTLM is not supported, it will fallback to Basic Auth.\n\n* Arguments\n  * `options` an object holding below options for the authentication process:\n    * `uri` the target URL\n    * `method` the HTTP verb\n    * `username`\n    * `password`\n    * `request` this is optional. An object that holds options that should be passed to the request instance\n* Returns\n  * `Promise` when resolved, the `request` instance, the result and the response body will be passed\n\n---------------------------------------\n\n#### createType1Message([workstation, target])\n\nCreates a type 1 NTLM message to initialize the NTLM handshake\n\n* Arguments\n  * `workstation` Optional. If `undefined`, `os.hostname()` will be used\n  * `target` Optional. This is the domain/host we are trying to authenticate against.\n* Returns\n  * `string` Complete NTLM string that should be sent to the server in the `Authentication` header\n\n---------------------------------------\n\n#### decodeType2Message(str)\n\nDecodes a type 2 message received from the server including the NTLM challenge\n\n* Arguments\n  * `str` Either the base64 encoded type 2 message, or the complete `WWW-Authenticate` header, or an object containg the response headers (`http.IncomingMessage`)\n* Returns\n  * `type2Message` An object containing the following information about the received type 2 message: `flags`, `encoding`, `version`, `challenge`, `targetName`, `targetInfo`.\n\n---------------------------------------\n\n#### createType3Message(type2Message, username, password[, workstation, target])\n\nCreates a type 3 message based on the type 2 message received from the server.\n\n* Arguments\n  * `type2Message` The decoded type 2 message object\n  * `username`\n  * `password`\n  * `workstation` Optional. If falsy, `os.hostname()` will be used\n  * `target` Optional. If falsy, the target name from the type 2 message will be used. This is the domain/host we are trying to authenticate against.\n* Returns\n  * `string` Complete NTLM string that should be sent to the server in the `Authentication` header","maintainers":[{"name":"clncln1","email":"nico.haller@gmail.com"}],"time":{"modified":"2022-06-22T12:15:05.834Z","created":"2015-11-19T14:25:17.209Z","0.0.1":"2015-11-19T14:25:17.209Z","0.0.2":"2015-11-19T16:03:58.545Z","0.0.3":"2015-11-20T14:22:34.082Z","0.0.4":"2015-11-23T12:48:55.735Z","0.0.5":"2015-11-24T08:12:27.388Z","0.1.0":"2016-04-24T16:57:28.052Z","0.1.1":"2016-06-01T16:09:53.577Z"},"homepage":"https://github.com/clncln1/node-ntlm-client","keywords":["ntlm","ntlmv2","client","authentication"],"repository":{"type":"git","url":"https://github.com/clncln1/node-ntlm-client.git"},"author":{"name":"Nico Haller","email":"nico.haller@gmail.com"},"bugs":{"url":"https://github.com/clncln1/node-ntlm-client/issues"},"license":"MIT","readmeFilename":"README.md"}