Compare commits

...

13 Commits
v0.0.4 ... main

Author SHA1 Message Date
Luiz Costa
6494f3585f remove ntlm_auth 2023-10-23 00:34:51 +01:00
Luiz Costa
623cc76a79 tenta usar outras variaveis 2023-10-23 00:16:16 +01:00
Luiz Costa
60281e7e52 tenta passar server challenge como argumento 2023-10-23 00:09:18 +01:00
Luiz Costa
8736b8b2d2 mais debug 2023-10-22 23:53:43 +01:00
Luiz Costa
8ffe110be0 add debug 2023-10-22 23:45:25 +01:00
Luiz Costa
965428a9ca tenta extrair server challenge 2023-10-22 23:41:27 +01:00
Luiz Costa
60862656b0 tenta corrigir o valor das variaveis 2023-10-22 23:32:06 +01:00
Luiz Costa
332c64ca10 fix syntax 2023-10-22 23:23:18 +01:00
Luiz Costa
2cf334bd14 tenta usar valores corretos 2023-10-22 23:20:38 +01:00
Luiz Costa
7ac042d69a test variables 2023-10-22 23:11:35 +01:00
Luiz Costa
121142af03 tenta alterar a forma como chama e muda a ordem 2023-10-22 15:23:42 +01:00
Luiz Costa
89738a42b3 add ntlm_auth and debug init 2023-10-22 15:14:09 +01:00
Luiz Costa
4872a0799e more debug 2023-10-21 23:36:58 +01:00

View File

@ -231,10 +231,6 @@ func (n *V2ServerSession) ProcessAuthenticateMessage(am *AuthenticateMessage) (e
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: Show user complete info: %v", n.SessionData)
log.Printf("DEBUG: Password is showed as %s", n.password)
err = n.fetchResponseKeys()
if err != nil {
return err
@ -249,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()