Skip to content

Commit

Permalink
Add option to set NTLM Auth in config.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne Stalmans committed May 11, 2017
1 parent 40f7b56 commit 99a49bd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,3 @@ _testmain.go
ruler-*
ruler
logs/
config.yml
1 change: 1 addition & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ mailbox: "[email protected]"
rpcurl: "https://outlook.office365.com/rpc/rpcproxy.dll"
rpc: false
rpcencrypt: true
ntlm: true
mapiurl: "https://outlook.office365.com/mapi/emsmdb/"
1 change: 1 addition & 0 deletions ruler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 1 addition & 0 deletions utils/datatypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ type YamlConfig struct {
RPCURL string
RPC bool
RPCEncrypt bool
Ntlm bool
MapiURL string
}

Expand Down

0 comments on commit 99a49bd

Please sign in to comment.