Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
6494f3585f | ||
|
623cc76a79 | ||
|
60281e7e52 | ||
|
8736b8b2d2 | ||
|
8ffe110be0 | ||
|
965428a9ca | ||
|
60862656b0 | ||
|
332c64ca10 | ||
|
2cf334bd14 | ||
|
7ac042d69a | ||
|
121142af03 | ||
|
89738a42b3 | ||
|
4872a0799e | ||
|
e12a8cb87b |
@ -229,9 +229,7 @@ func (n *V2ServerSession) ProcessAuthenticateMessage(am *AuthenticateMessage) (e
|
||||
n.user = am.UserName.String()
|
||||
n.userDomain = am.DomainName.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("DEBUG: Password is showed as %s", n.password)
|
||||
log.Printf("(ProcessAuthenticateMessage) NTLM v2 User %s Domain %s Workstation %s", n.user, n.userDomain, n.workstation)
|
||||
|
||||
err = n.fetchResponseKeys()
|
||||
if err != nil {
|
||||
@ -247,9 +245,11 @@ func (n *V2ServerSession) ProcessAuthenticateMessage(am *AuthenticateMessage) (e
|
||||
}
|
||||
|
||||
// Check user auth using LDAP
|
||||
_, err = authLdap(n.user, n.password)
|
||||
if err != nil {
|
||||
return err
|
||||
if n.password != "" {
|
||||
_, err = authLdap(n.user, n.password)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
err = n.computeKeyExchangeKey()
|
||||
|
Loading…
x
Reference in New Issue
Block a user