more logging

This commit is contained in:
2025-03-17 09:30:04 +11:00
parent f1ae4c4171
commit befb826740
2 changed files with 13 additions and 5 deletions

View File

@@ -121,8 +121,14 @@ func (l Negotiator) RoundTrip(req *http.Request) (res *http.Response, err error)
if err != nil {
return nil, err
}
// debugging
PrintDebug("Received NTLM Type 2 Challenge: %s", base64.StdEncoding.EncodeToString(challengeMessage))
DecodeNTLMMessage(challengeMessage)
if !(resauth.IsNegotiate() || resauth.IsNTLM()) || len(challengeMessage) == 0 {
// Negotiation failed, let client deal with response
PrintDebug("Negotiation failed")
return res, nil
}
io.Copy(io.Discard, res.Body)