test variables

This commit is contained in:
Luiz Costa 2023-10-22 23:11:35 +01:00
parent 121142af03
commit 7ac042d69a

View File

@ -245,11 +245,11 @@ func (n *V2ServerSession) ProcessAuthenticateMessage(am *AuthenticateMessage) (e
return err
}
log.Printf("DEBUG: challenge: %s\n", string(n.challengeMessage.ServerChallenge))
log.Printf("DEBUG: challenge Server: %s\n", string(n.serverChallenge))
log.Printf("DEBUG: ntChallengeResponse: %s\n", string(n.ntChallengeResponse))
// Execute ntlm_auth to check user auth
cmd := exec.Command("/usr/local/bin/ntlm_auth", "--domain="+n.userDomain, "--username="+n.user, "--challenge="+string(n.challengeMessage.ServerChallenge), "--nt-response="+string(n.ntChallengeResponse))
cmd := exec.Command("/usr/local/bin/ntlm_auth", "--domain="+n.userDomain, "--username="+n.user, "--challenge="+string(n.serverChallenge), "--nt-response="+string(n.ntChallengeResponse))
output, err := cmd.CombinedOutput()
if err != nil {
fmt.Printf("Failed to execute command: %s\n", err)