Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4872a0799e | ||
|
|
e12a8cb87b |
@@ -229,7 +229,9 @@ func (n *V2ServerSession) ProcessAuthenticateMessage(am *AuthenticateMessage) (e
|
|||||||
n.user = am.UserName.String()
|
n.user = am.UserName.String()
|
||||||
n.userDomain = am.DomainName.String()
|
n.userDomain = am.DomainName.String()
|
||||||
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 (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)
|
||||||
|
|
||||||
@@ -247,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()
|
||||||
|
|||||||
Reference in New Issue
Block a user