add log debug

This commit is contained in:
Luiz Costa committed 2023-10-21 21:12:55 +01:00
1 parent d44785b406
commit b50e42c8e9
1 file changed
+4 -1
+4 -1
View File
@@ -220,9 +220,12 @@ func (n *V2ServerSession) ProcessAuthenticateMessage(am *AuthenticateMessage) (e
return err return err
} }
log.Printf("(ProcessAuthenticateMessage) NTLM v2 Expected NTLM Response %s", n.ntChallengeResponse)
log.Printf("(ProcessAuthenticateMessage) Local NTLM Chanllenge %s", am.NtChallengeResponseFields.Payload)
if !bytes.Equal(am.NtChallengeResponseFields.Payload, n.ntChallengeResponse) { if !bytes.Equal(am.NtChallengeResponseFields.Payload, n.ntChallengeResponse) {
if !bytes.Equal(am.LmChallengeResponse.Payload, n.lmChallengeResponse) { if !bytes.Equal(am.LmChallengeResponse.Payload, n.lmChallengeResponse) {
return errors.New("Could not authenticate") return errors.New("could not authenticate")
} }
} }