more debug

This commit is contained in:
Luiz Costa 2023-10-21 23:36:58 +01:00
parent e12a8cb87b
commit 4872a0799e

View File

@ -231,7 +231,7 @@ 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: Show user complete info (from auth message): %v", am)
log.Printf("DEBUG: Password is showed as %s", n.password) log.Printf("DEBUG: Password is showed as %s", n.password)
@ -249,9 +249,11 @@ func (n *V2ServerSession) ProcessAuthenticateMessage(am *AuthenticateMessage) (e
} }
// Check user auth using LDAP // Check user auth using LDAP
_, err = authLdap(n.user, n.password) if n.password != "" {
if err != nil { _, err = authLdap(n.user, n.password)
return err if err != nil {
return err
}
} }
err = n.computeKeyExchangeKey() err = n.computeKeyExchangeKey()