add log debug
This commit is contained in:
parent
d44785b406
commit
b50e42c8e9
@ -220,9 +220,12 @@ func (n *V2ServerSession) ProcessAuthenticateMessage(am *AuthenticateMessage) (e
|
||||
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.LmChallengeResponse.Payload, n.lmChallengeResponse) {
|
||||
return errors.New("Could not authenticate")
|
||||
return errors.New("could not authenticate")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user