From 99a49bd7e0247bff7fe53ac495934334f9093d7b Mon Sep 17 00:00:00 2001 From: Etienne Stalmans Date: Thu, 11 May 2017 14:30:49 +0100 Subject: [PATCH] Add option to set NTLM Auth in config.yml --- .gitignore | 1 - config.yml | 1 + ruler.go | 1 + utils/datatypes.go | 1 + 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2c486f0..4cef10e 100644 --- a/.gitignore +++ b/.gitignore @@ -26,4 +26,3 @@ _testmain.go ruler-* ruler logs/ -config.yml diff --git a/config.yml b/config.yml index db989b4..74c16f9 100644 --- a/config.yml +++ b/config.yml @@ -8,4 +8,5 @@ mailbox: "0003bffd-fef9-fb24-0000-000000000000@outlook.com" rpcurl: "https://outlook.office365.com/rpc/rpcproxy.dll" rpc: false rpcencrypt: true +ntlm: true mapiurl: "https://outlook.office365.com/mapi/emsmdb/" diff --git a/ruler.go b/ruler.go index 4ef5e5f..a9a9db3 100644 --- a/ruler.go +++ b/ruler.go @@ -321,6 +321,7 @@ func connect(c *cli.Context) error { //create RPC URL config.RPCURL = fmt.Sprintf("%s?%s:6001", yamlConfig.RPCURL, yamlConfig.Mailbox) config.RPCEncrypt = yamlConfig.RPCEncrypt + config.RPCNtlm = yamlConfig.Ntlm } else { mapiURL = fmt.Sprintf("%s?MailboxId=%s", yamlConfig.MapiURL, yamlConfig.Mailbox) } diff --git a/utils/datatypes.go b/utils/datatypes.go index 1324391..b1c54d6 100644 --- a/utils/datatypes.go +++ b/utils/datatypes.go @@ -71,6 +71,7 @@ type YamlConfig struct { RPCURL string RPC bool RPCEncrypt bool + Ntlm bool MapiURL string }