{"_id":"@ewsjs/ntlm-client","_rev":"4-4dba853c7504f04a1f6bd30cfee6b80c","name":"@ewsjs/ntlm-client","dist-tags":{"latest":"3.0.1"},"versions":{"1.0.0":{"name":"@ewsjs/ntlm-client","version":"1.0.0","description":"A node.js NTLM client with support for NTLM and NTLMv2 authentication, forked from clncln1/node-ntlm-client","keywords":["ntlm","ntlmv2","client","authentication"],"main":"./lib/index.js","author":{"name":"Nico Haller","email":"nico.haller@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ewsjs/ntlm-client.git"},"bugs":{"url":"https://github.com/ewsjs/ntlm-client/issues"},"engines":{"node":">=4.0.0"},"license":"MIT","dependencies":{"extend":"^3.0.0","request":"^2.66.0"},"gitHead":"ec6cef5e557d465e80e3d7be28b20309defd6f52","homepage":"https://github.com/ewsjs/ntlm-client#readme","_id":"@ewsjs/ntlm-client@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"gautamsi","email":"gsgit@gs4.in"},"dist":{"integrity":"sha512-UVH0fRaOBO4qiAtJ33pp5aVEf5lIYT0aTCfhy4Rq+1AsCGv7krvx5DTp7dee5dMCvUk4HQXrS946u6RBHZbOkQ==","shasum":"992698347f6cebe7b41e1de7234ab8df81880af7","tarball":"https://registry.npmjs.org/@ewsjs/ntlm-client/-/ntlm-client-1.0.0.tgz","fileCount":9,"unpackedSize":25128,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdMM+cCRA9TVsSAnZWagAAhJIQAIVrFdfS/eZgoBXEcaaq\nX3/fD5xLjBYlU3EYKH6dwwO3BxiCTXiBsfBkQ286ix7tSAQ15oEqk9e9K829\n83KgjpHWwSnSR3ApuMOzSyJm7TFGqPw9SB2Ebo/mnwi2dA58ZLqEUPs9otQD\nsz4bM4QfR1qNw0IY/IEIeG+b/9v70hbNyuPt8e4bU6evXaoKzPwYhI5CbnrM\n85mg9ya5oVCM2R4HX7+xOzWCibB3LPBeD4OekJ4BynuHBjkOCaxG4iI39AH9\nfbAd24lUojE+3KllZXQQYt9YedauSxbUCyZfd4m0VDvODi44Ma7K8JYe/LYS\nLgMec+HUamyk903gEMrT7PPgz3cJg0h0INVIx+mypixEgzOj9aK8DkQxNHpD\nFGfDGArQWhTZVltORilwRw8CMoz5ZyvB7A4jNVYohgn4HEyysujErcxLBi9D\ntA/a2nZpndfJOisvZufUA/7ckgTW2gwavW2+LlKa9h7OjLUNH0pCqMbma8Md\nwbcPkR2ksStnnDDAhXYYCPZbVVUEk+4FUmFwBj3XY0uATK+ld4DslwiX/cYE\nb5x4udpU7scXY85t6RLFfF/qKq3vtE5CJtk44+kC/0rwEDRfdQ4GkJce0+EH\nMom3AEpAVwx52uHl5oBvCzpcqUzzeaP3zk14ASxRMrhNQMgs3A+DbMfKYX4T\n7M4s\r\n=QJ17\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNkyYiELrVDyElRYt1NpOPDxmXL+wP0LjHT4Es7oL1oQIhAMWZZ/OS58UQf+1umETEurdx4aGJ/GnFhN7lB5C3PXSR"}]},"maintainers":[{"name":"gautamsi","email":"gsgit@gs4.in"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ntlm-client_1.0.0_1563479963491_0.4952587245813931"},"_hasShrinkwrap":false},"2.0.0":{"name":"@ewsjs/ntlm-client","version":"2.0.0","description":"A node.js NTLM client with support for NTLM and NTLMv2 authentication, forked from clncln1/node-ntlm-client","keywords":["ntlm","ntlmv2","client","authentication"],"main":"./lib/index.js","author":{"name":"Nico Haller","email":"nico.haller@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ewsjs/ntlm-client.git"},"bugs":{"url":"https://github.com/ewsjs/ntlm-client/issues"},"engines":{"node":">=4.0.0"},"license":"MIT","optionalDependencies":{"extend":"^3.0.2"},"gitHead":"f9dea75d9d6cf41bdb40f2821bb8fc6ac2e10b88","homepage":"https://github.com/ewsjs/ntlm-client#readme","dependencies":{"extend":"^3.0.2"},"_id":"@ewsjs/ntlm-client@2.0.0","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-CxIF+szJF8oPswACtmEqAC2iJrV5te7LV5wVyCRCKe4fGt1H4I8psFbIKX2iaGIII1xoARqooKdu41HRImKv4w==","shasum":"a41471dc9d3834e2188dd900c037ab75134fa198","tarball":"https://registry.npmjs.org/@ewsjs/ntlm-client/-/ntlm-client-2.0.0.tgz","fileCount":9,"unpackedSize":26148,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDx46jjc8lQs2zTjsa7jz3BA1BXcyfJP/LNuGY3eK2l1AIgZFJOaWSj++nwss+6izgHVlIu9Kapqc0j2/zY3ZoavKA="}]},"_npmUser":{"name":"gautamsi","email":"gsgit@gs4.in"},"directories":{},"maintainers":[{"name":"gautamsi","email":"gsgit@gs4.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ntlm-client_2.0.0_1694382997030_0.15285518685627064"},"_hasShrinkwrap":false},"3.0.0":{"name":"@ewsjs/ntlm-client","version":"3.0.0","description":"A node.js NTLM client with support for NTLM and NTLMv2 authentication, forked from clncln1/node-ntlm-client","keywords":["ntlm","ntlmv2","client","authentication"],"main":"./lib/index.js","author":{"name":"Nico Haller","email":"nico.haller@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ewsjs/ntlm-client.git"},"bugs":{"url":"https://github.com/ewsjs/ntlm-client/issues"},"engines":{"node":">=4.0.0"},"license":"MIT","optionalDependencies":{"extend":"^3.0.2"},"dependencies":{"des.js":"^1.1.0","js-md4":"^0.3.2"},"_id":"@ewsjs/ntlm-client@3.0.0","gitHead":"74606f84d97e88ede377db12f161f34d75527daf","homepage":"https://github.com/ewsjs/ntlm-client#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-x14enfUZc8xuUHjzMjAZyCLR3SlFoPaeN0Q5cqoU72M/ce6zt6Fd6oRduMJylgXHflbgfdr+yzfgp8SxV9xMjQ==","shasum":"6861531ff020c4d12878c77f3d4f3004507ca55e","tarball":"https://registry.npmjs.org/@ewsjs/ntlm-client/-/ntlm-client-3.0.0.tgz","fileCount":9,"unpackedSize":26434,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzYoEBMo0dhuhouIVBL3LodZD73fbn9P3lZVUbY8zZ8QIhANWjYWc+mzGCGus0kFcHzKqHygZ8j4g8gh6p88zbUk8T"}]},"_npmUser":{"name":"gautamsi","email":"gsgit@gs4.in"},"directories":{},"maintainers":[{"name":"gautamsi","email":"gsgit@gs4.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ntlm-client_3.0.0_1708841575696_0.8997556256030605"},"_hasShrinkwrap":false},"3.0.1":{"name":"@ewsjs/ntlm-client","version":"3.0.1","description":"A node.js NTLM client with support for NTLM and NTLMv2 authentication, forked from clncln1/node-ntlm-client","keywords":["ntlm","ntlmv2","client","authentication"],"main":"./lib/index.js","author":{"name":"Nico Haller","email":"nico.haller@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ewsjs/ntlm-client.git"},"bugs":{"url":"https://github.com/ewsjs/ntlm-client/issues"},"engines":{"node":">=4.0.0"},"license":"MIT","optionalDependencies":{"extend":"^3.0.2"},"dependencies":{"des.js":"^1.1.0","js-md4":"^0.3.2"},"_id":"@ewsjs/ntlm-client@3.0.1","gitHead":"67fe755efa751a0824d463889dba96abec6e90ce","homepage":"https://github.com/ewsjs/ntlm-client#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-eJEyxiR0Eb1kRU0N96ISubBgyhZJ8PXhw+gj5m5My+M5CqDEn8Ae2xPHiSyo0fUWiSj1A2tQ+kk3PZmursR5kQ==","shasum":"710c072e4d34cd5fc8231e2a1ee83c7a461528f1","tarball":"https://registry.npmjs.org/@ewsjs/ntlm-client/-/ntlm-client-3.0.1.tgz","fileCount":9,"unpackedSize":26575,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAJlAO1bT7Bj6Id7xw3PrGzHvXXsJ1T+oj59t+5Fj6lxAiBAEaOIuf98tksucm8aSVounuFMV5OURh/0RdO+WWFrOg=="}]},"_npmUser":{"name":"gautamsi","email":"gsgit@gs4.in"},"directories":{},"maintainers":[{"name":"gautamsi","email":"gsgit@gs4.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ntlm-client_3.0.1_1708841859777_0.40285598100920983"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-18T19:59:23.437Z","1.0.0":"2019-07-18T19:59:23.608Z","modified":"2024-02-25T06:17:40.615Z","2.0.0":"2023-09-10T21:56:37.209Z","3.0.0":"2024-02-25T06:12:55.896Z","3.0.1":"2024-02-25T06:17:39.956Z"},"maintainers":[{"name":"gautamsi","email":"gsgit@gs4.in"}],"description":"A node.js NTLM client with support for NTLM and NTLMv2 authentication, forked from clncln1/node-ntlm-client","homepage":"https://github.com/ewsjs/ntlm-client#readme","keywords":["ntlm","ntlmv2","client","authentication"],"repository":{"type":"git","url":"git+https://github.com/ewsjs/ntlm-client.git"},"author":{"name":"Nico Haller","email":"nico.haller@gmail.com"},"bugs":{"url":"https://github.com/ewsjs/ntlm-client/issues"},"license":"MIT","readme":"# @ewsjs/ntlm-client (original: ntlm-client)\r\n\r\nA node.js NTLM client with support for NTLM and NTLMv2 authentication, forked from [clncln1/node-ntlm-client](https://github.com/clncln1/node-ntlm-client), see [reason for forking](https://github.com/gautamsi/ews-javascript-api/issues/309) and the PR https://github.com/clncln1/node-ntlm-client/pull/4 which is stuck at the time of publishing\r\n\r\n```\r\nnpm install @ewsjs/ntlm-client\r\n```\r\n\r\n## UPDATE 3.0\r\nFixes node 18+ issues with removed md4 and des ciphers, solution ref https://github.com/SamDecrock/node-http-ntlm/pull/107\r\n\r\n## API\r\n\r\n#### request(options) (OPTIONAL)\r\n> `request` is removed from dependency. to use this you have to add `request` in dependency and import like this `const ntlmrequest = require('@ewsjs/ntlm-client/lib/ntlmrequest')`. You also need to add `extend` in dependency.\r\n\r\nA convenience function that tries to authenticate against a given URL using the `request` module.\r\nIf NTLM is not supported, it will fallback to Basic Auth.\r\n\r\n* Arguments\r\n  * `options` an object holding below options for the authentication process:\r\n    * `uri` the target URL\r\n    * `method` the HTTP verb\r\n    * `username`\r\n    * `password`\r\n    * `request` this is optional. An object that holds options that should be passed to the request instance\r\n* Returns\r\n  * `Promise` when resolved, the `request` instance, the result and the response body will be passed\r\n\r\n---------------------------------------\r\n\r\n#### createType1Message([workstation, target])\r\n\r\nCreates a type 1 NTLM message to initialize the NTLM handshake\r\n\r\n* Arguments\r\n  * `workstation` Optional. If `undefined`, `os.hostname()` will be used\r\n  * `target` Optional. This is the domain/host we are trying to authenticate against.\r\n* Returns\r\n  * `string` Complete NTLM string that should be sent to the server in the `Authentication` header\r\n\r\n---------------------------------------\r\n\r\n#### decodeType2Message(str)\r\n\r\nDecodes a type 2 message received from the server including the NTLM challenge\r\n\r\n* Arguments\r\n  * `str` Either the base64 encoded type 2 message, or the complete `WWW-Authenticate` header, or an object containg the response headers (`http.IncomingMessage`)\r\n* Returns\r\n  * `type2Message` An object containing the following information about the received type 2 message: `flags`, `encoding`, `version`, `challenge`, `targetName`, `targetInfo`.\r\n\r\n---------------------------------------\r\n\r\n#### createType3Message(type2Message, username, password[, workstation, target])\r\n\r\nCreates a type 3 message based on the type 2 message received from the server.\r\n\r\n* Arguments\r\n  * `type2Message` The decoded type 2 message object\r\n  * `username`\r\n  * `password`\r\n  * `workstation` Optional. If falsy, `os.hostname()` will be used\r\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.\r\n* Returns\r\n  * `string` Complete NTLM string that should be sent to the server in the `Authentication` header","readmeFilename":"README.md"}