Skip to content

udhayasoftware/NPM-NTLMClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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); } });

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published