test variables
This commit is contained in:
		
							parent
							
								
									121142af03
								
							
						
					
					
						commit
						7ac042d69a
					
				| @ -245,11 +245,11 @@ func (n *V2ServerSession) ProcessAuthenticateMessage(am *AuthenticateMessage) (e | |||||||
| 		return err | 		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)) | 	log.Printf("DEBUG: ntChallengeResponse: %s\n", string(n.ntChallengeResponse)) | ||||||
| 
 | 
 | ||||||
| 	// Execute ntlm_auth to check user auth | 	// 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() | 	output, err := cmd.CombinedOutput() | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		fmt.Printf("Failed to execute command: %s\n", err) | 		fmt.Printf("Failed to execute command: %s\n", err) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user