12 Commits

Author SHA1 Message Date
914418860e update 2025-03-17 12:52:53 +11:00
7f640273ef update 2025-03-17 09:51:29 +11:00
04e99acaff debugging more 2025-03-17 09:31:37 +11:00
491fa8fb98 add debugging version 2025-03-17 08:48:04 +11:00
LaunchDarklyCI
89583a609c Releasing version 1.0.1 2020-06-11 19:09:53 +00:00
Eli Bishop
a40a668aab update go-ntlmssp dependency 2020-06-11 12:08:56 -07:00
Eli Bishop
218e186f7e add changelog and release metadata 2020-06-11 12:01:31 -07:00
Eli Bishop
fdce795536 Merge pull request #2 from launchdarkly/eb/ch78731/module
make this repo a module + add CI build
2020-06-11 11:45:36 -07:00
Eli Bishop
8ae043fc12 add CI badge 2020-06-09 11:43:07 -07:00
Eli Bishop
ee119e10d6 make this repo a module 2020-06-09 11:38:44 -07:00
Eli Bishop
2c0eef4970 CI fix 2020-06-09 11:37:17 -07:00
Eli Bishop
865adb9f3d add CI build 2020-06-09 11:34:38 -07:00
5 changed files with 32 additions and 4 deletions

10
CHANGELOG.md Normal file
View File

@@ -0,0 +1,10 @@
# Change log
All notable changes to the project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
## [1.0.1] - 2020-06-11
### Added:
- Added `go.mod` file so this package can now be consumed as a module. Since the major version is still `1` and it does not have any module-only dependencies, it can still be used by non-module projects as well.
## [1.0.0] - 2019-07-16
Initial release of this fork. The only change from the upstream code is that its dependency on `github.com/Azure/go-ntlmssp` has been replaced with `github.com/launchdarkly/go-ntlmssp`(https://github.com/launchdarkly/go-ntlmssp).

View File

@@ -2,10 +2,11 @@
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![GoDoc](https://godoc.org/github.com/launchdarkly/go-ntlm-proxy-auth?status.svg)](https://godoc.org/github.com/launchdarkly/go-ntlm-proxy-auth)
[![Circle CI](https://circleci.com/gh/launchdarkly/go-ntlm-proxy-auth.svg?style=svg)](https://circleci.com/gh/launchdarkly/go-ntlm-proxy-auth)
With this package, you can connect to http/https servers protected by an NTLM proxy in Golang.
This is a fork of https://github.com/Codehardt/go-ntlm-proxy-auth which adds support for HTTPS proxy URLs. It also uses the fork https://github.com/launchdarkly/go-ntlmssp instead of `github.com/Azure/go-ntlmssp`.
This is a fork of https://github.com/launchdarkly/go-ntlm-proxy-auth to enable extra debugging
## Example: NewNTLMProxyDialContext

7
go.mod Normal file
View File

@@ -0,0 +1,7 @@
module git.coadcorp.com/nathan/go-ntlm-proxy-auth
go 1.24.1
require git.coadcorp.com/nathan/go-ntlmssp v1.0.5
require golang.org/x/crypto v0.36.0 // indirect

10
go.sum Normal file
View File

@@ -0,0 +1,10 @@
git.coadcorp.com/nathan/go-ntlmssp v1.0.2 h1:7vx6sF5AK97ff+1PXxQnCd3AZ4ey/X61Qd4y7Y2OG7s=
git.coadcorp.com/nathan/go-ntlmssp v1.0.2/go.mod h1:/0x9Ju5bWF978Vb+kMMfl+GYk5/j7CFq5yAsjEXOG8g=
git.coadcorp.com/nathan/go-ntlmssp v1.0.3 h1:X0nF9f6MPcnV5sPsPpaERcHGucCzeDl484hA4DwGsNA=
git.coadcorp.com/nathan/go-ntlmssp v1.0.3/go.mod h1:/0x9Ju5bWF978Vb+kMMfl+GYk5/j7CFq5yAsjEXOG8g=
git.coadcorp.com/nathan/go-ntlmssp v1.0.4 h1:46bdUfeI6wefpEpJFWsD4LyZVKREPMdfU9zrwQKLOZc=
git.coadcorp.com/nathan/go-ntlmssp v1.0.4/go.mod h1:/0x9Ju5bWF978Vb+kMMfl+GYk5/j7CFq5yAsjEXOG8g=
git.coadcorp.com/nathan/go-ntlmssp v1.0.5 h1:ODZUSXMV/d2NWgwTx6VkexmoFpBG0hXW2mvEIVKu4sg=
git.coadcorp.com/nathan/go-ntlmssp v1.0.5/go.mod h1:/0x9Ju5bWF978Vb+kMMfl+GYk5/j7CFq5yAsjEXOG8g=
golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34=
golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc=

View File

@@ -7,13 +7,13 @@ import (
"encoding/base64"
"errors"
"fmt"
"io/ioutil"
"io"
"net"
"net/http"
"net/url"
"strings"
ntlmssp "github.com/launchdarkly/go-ntlmssp"
ntlmssp "git.coadcorp.com/nathan/go-ntlmssp"
)
// DialContext is the DialContext function that should be wrapped with a
@@ -86,7 +86,7 @@ func dialAndNegotiate(addr, proxyUsername, proxyPassword, proxyDomain string, ba
debugf("ntlm> Could not read response from proxy: %s", err)
return conn, err
}
_, err = ioutil.ReadAll(resp.Body)
_, err = io.ReadAll(resp.Body)
if err != nil {
debugf("ntlm> Could not read response body from proxy: %s", err)
return conn, err