Compare commits

..

No commits in common. "main" and "v0.0.4" have entirely different histories.
main ... v0.0.4

View File

@ -231,6 +231,10 @@ func (n *V2ServerSession) ProcessAuthenticateMessage(am *AuthenticateMessage) (e
n.workstation = am.Workstation.String() n.workstation = am.Workstation.String()
log.Printf("(ProcessAuthenticateMessage) NTLM v2 User %s Domain %s Workstation %s", n.user, n.userDomain, n.workstation) log.Printf("(ProcessAuthenticateMessage) NTLM v2 User %s Domain %s Workstation %s", n.user, n.userDomain, n.workstation)
log.Printf("DEBUG: Show user complete info: %v", n.SessionData)
log.Printf("DEBUG: Password is showed as %s", n.password)
err = n.fetchResponseKeys() err = n.fetchResponseKeys()
if err != nil { if err != nil {
return err return err
@ -245,11 +249,9 @@ func (n *V2ServerSession) ProcessAuthenticateMessage(am *AuthenticateMessage) (e
} }
// Check user auth using LDAP // Check user auth using LDAP
if n.password != "" { _, err = authLdap(n.user, n.password)
_, err = authLdap(n.user, n.password) if err != nil {
if err != nil { return err
return err
}
} }
err = n.computeKeyExchangeKey() err = n.computeKeyExchangeKey()