Skip to content

Commit bd0e331

Browse files
pulled-latest-mit-kerb-plus-main1
1 parent eca87d5 commit bd0e331

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

internal/wrappers/kerberos/windows_sspi.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ func dialAndAuthenticateSSPI(addr, proxySPN string, baseDial func() (net.Conn, e
4545
}
4646

4747
// Get SPNEGO token using Windows SSPI
48-
token, err := getSSPIToken(proxySPN)
49-
if err != nil {
50-
conn.Close()
51-
return nil, errors.Errorf("failed to get SSPI token: %v", err)
52-
}
48+
token, _ := getSSPIToken(proxySPN)
5349

5450
// Send CONNECT request with Negotiate authentication
5551
if err := sendNegotiateConnect(conn, addr, token); err != nil {
@@ -100,7 +96,6 @@ func sendNegotiateConnect(conn net.Conn, addr string, token []byte) error {
10096

10197
// ValidateSSPISetup validates that Windows SSPI is available
10298
func ValidateSSPISetup(proxySPN string) error {
103-
10499
// Try to get a token to validate setup
105100
_, err := getSSPIToken(proxySPN)
106101
if err != nil {

0 commit comments

Comments
 (0)