68 Commits

Author SHA1 Message Date
vadimi
24f09f722f relax go requirement version 2020-06-13 22:25:07 -04:00
vadimi
0b76e99be3 get rid of the old library name 2020-06-13 21:31:51 -04:00
Charlie Monzillo
cf23bd1ecf
Update README.md 2018-11-30 12:11:25 -05:00
Charlie Monzillo
51f51a355c
Merge pull request #12 from rsc/for-vgo
fixes for Go 1.10 and setup for vgo + Go 1.11
2018-06-04 16:11:43 -04:00
Charlie Monzillo
4ed67641c7
Merge branch 'master' into for-vgo 2018-06-04 16:10:31 -04:00
Charlie Monzillo
c86eb07cb1
Merge pull request #11 from QuLogic/format-errors
Fix errors in test failure messages.
2018-06-04 16:09:17 -04:00
Elliott Sales de Andrade
48a741f106 Fix errors in test failure messages. 2018-06-04 16:07:57 -04:00
Charlie Monzillo
ff14e82ec6
Merge pull request #13 from larsxschneider/patch-1
Fix accidentally committed merge conflict
2018-05-31 16:24:23 -04:00
Lars Schneider
fb351f8b8a
Fix accidentally committed merge conflict 2018-05-31 21:55:10 +02:00
Russ Cox
c5fd2d4d2b go-ntlm: add go.mod
This file is used by vgo (go get -u golang.org/x/vgo)
and will be understood by Go 1.11 and later too.

Normally a go.mod file lists required dependencies
of a module (think repository), but this module has
no required dependencies, so the file only gives the
module path.

Defining the module path ensures that clients import
the package under its canonical name, not under
alternate casings such as

	import "github.com/thomsonREUTERSeIkOn/go-ntlm"

which would otherwise work (since GitHub answers to that path).

Having a go.mod file also makes it possible to work on
this repository outside GOPATH when using vgo or Go 1.11.
That is, the go.mod file makes it possible to

	git clone https://github.com/ThomsonReutersEikon/go-ntlm
	cd go-ntlm
	vgo build ./...
	vgo test ./...

from anywhere, not just inside GOPATH.
2018-05-24 23:04:54 -04:00
Russ Cox
63466d3e78 ntlm: fix two test print format bugs
Go 1.10 now catches mistakes like these as part of "go test".
These were making "go test" fail.
2018-05-24 23:04:54 -04:00
Russ Cox
7b9c9198d5 utils: make repo safe for "go build ./..."
This directory contains two separate helper programs
that can be run with "go run". It's not possible to cd into
the directory and run "go build", because there are two
different Go source files defining main.main.

The canonical way to indicate this is to put a "// +build ignore"
build tag at the top of such helper programs.
Then they can still be run by

	go run decode_auth.go
	go run test_auth.go

but will not be considered by "cd utils; go build" nor by
commands like "go build ./..." or "go test ./..." in the
root of the repo.
2018-05-24 22:55:54 -04:00
Brian Cully
2a7c173f9e
Merge pull request #10 from EdwardBetts/spelling
correct spelling mistake
2017-10-30 09:35:01 -06:00
Edward Betts
10ef9c442c correct spelling mistake 2017-09-01 16:10:43 +01:00
Brian Cully
b00ec39bbd Use golang's log, so we don't need log4go. 2015-10-30 00:47:37 +00:00
Kamil Kisiel
52b7efa603 Merge pull request #6 from jbussdieker/master
Fix typo in README.md
2014-08-22 11:32:25 -07:00
Joshua Bussdieker
dc6ca4b498 Fix typo in README.md 2014-08-22 10:37:12 -07:00
Matthew Kanwisher
bd2d606526 ugh sometimes you have to patch things 2014-01-30 23:52:25 +07:00
Matthew Kanwisher
c8a3b75c07 swap out log libraries 2013-12-16 17:55:30 -05:00
Matthew Kanwisher
fa838c58b1 fix import 2013-12-16 17:54:40 -05:00
Matthew Kanwisher
2c41892430 ugh tracking down a nil pointer problem 2013-12-16 17:52:44 -05:00
Matthew Kanwisher
f19ccd5e15 Changed license to BSD license 2013-07-26 12:44:48 -04:00
Matthew Kanwisher
aeba978d32 Merge pull request #4 from ThomsonReutersEikon/refactor_messages
Refactor messages
2013-07-23 18:01:07 -07:00
Conor Hunt
6783d408ba rename Authenticate/Challenge/Negotiate to *Message 2013-07-23 15:35:16 -05:00
Conor Hunt
af256c1a87 move messages out of unecessary messages package and in to ntlm package 2013-07-23 15:27:25 -05:00
Conor Hunt
e3fb7332f7 fix issue where NTLMv1 with extended session security would always authenticate with any password 2013-07-23 14:55:12 -05:00
Matthew Kanwisher
a11b8727db fixing readme 2013-07-23 11:32:48 -04:00
Matthew Kanwisher
f221989156 removed non useful comments 2013-05-22 09:55:10 -04:00
Matthew Kanwisher
7dd611b64e fixing godoc formatting 2013-05-21 22:17:29 -04:00
Matthew Kanwisher
85f6623a22 making things more go get friendly 2013-05-21 16:07:12 -04:00
Matthew Kanwisher
6e9e2ebdb3 moving to support go get 2013-05-21 15:58:36 -04:00
Conor Hunt
fbe6b39533 Update README to note capabilities and usage notes. 2013-05-21 16:37:45 -03:00
David Michael
8d2d8236a5 making the README pretty 2013-05-21 14:54:42 -04:00
Matthew Kanwisher
8966f9d83d adding License information and go format 2013-05-21 14:40:12 -04:00
Matthew Kanwisher
2eea5b495b Merge commit '1010dbd' 2013-05-11 18:15:34 -04:00
Matthew Kanwisher
1010dbd7d2 expose macsequal 2013-05-11 18:13:52 -04:00
Matthew Kanwisher
cab675b1fd exposing more stuff 2013-05-11 18:11:39 -04:00
Matthew Kanwisher
1da4ab53b9 exposing more functions 2013-05-11 18:09:05 -04:00
Matthew Kanwisher
d960dfe90e exporting fields so they can be serialized 2013-05-11 17:10:19 -04:00
Matthew Kanwisher
e9221087f7 cleanup crap 2013-04-15 18:24:59 -04:00
Matthew Kanwisher
9713171bf6 fix signature generation on ntlmv1 2013-04-15 18:19:19 -04:00
Matthew Kanwisher
c71d542d90 minor tweaks for ntlmv1 2013-04-15 17:55:10 -04:00
Matthew Kanwisher
413d3231d7 hacking up the ntlm tests to work 2013-04-15 17:43:20 -04:00
Matthew Kanwisher
632d9d2622 adding a tiny bit of logging 2013-03-17 14:10:39 -04:00
John Shahid
ca8e8b0536 add VerifyMac to the ClientSession interface. 2013-03-15 19:06:37 -04:00
Conor Hunt
b6450042ef add some checking when trying to parse an NTLMv1 auth message as NTLMv1 2013-03-11 17:07:43 -04:00
Conor Hunt
7d7e8661ae add utility for testing authentication 2013-03-11 16:34:48 -04:00
Conor Hunt
ff027624e9 added test for usimg the username and domain from the authenticate packet 2013-03-11 16:31:42 -04:00
Conor Hunt
452979e4c9 use the username and domain from the authenticate message instead of using the values passed in via SetUserInfo 2013-03-11 16:14:24 -04:00
Conor Hunt
35794c1930 tool parses ntlm v1 or v2 2013-03-11 15:14:12 -04:00