@udhayamoorthy/ntlm-client

1.0.1 • Public • Published

var NTLMClient = require("@udhayamoorthy/ntlm-client");

var config = { username: 'username', password: 'password', domain: 'banana', workstation: '', url: 'https://mail.company.com/ews/exchange.asmx', host: 'mail.company.com' };

var postbody = ' <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"> soap:Body <t:BaseShape>Default</t:BaseShape> <t:DistinguishedFolderId Id="inbox" /> </soap:Body> </soap:Envelope>';

var ntlmClient = new NTLMClient(); ntlmClient.startRequest(config, postbody, function (err, body) { if (err) { console.log(err); } else {
console.log("Response = "+body); } });

Package Sidebar

Install

npm i @udhayamoorthy/ntlm-client

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • udhayamoorthy