Fix SMB credential validation on Windows hosts

This commit is contained in:
Lachlan Arthur 2020-07-30 17:10:18 +10:00
parent 0f2b1acb00
commit c2df34298f
2 changed files with 6 additions and 1 deletions

View File

@ -70,6 +70,11 @@ module VagrantPlugins
require_relative "cap/ssh"
Cap::SSH
end
host_capability("windows", "smb_validate_password") do
require_relative "cap/smb"
Cap::SMB
end
end
end
end

View File

@ -66,7 +66,7 @@ module VagrantPlugins
if machine.env.host.capability?(:smb_validate_password)
Vagrant::Util::CredentialScrubber.sensitive(smb_password)
auth_success = machine.env.host.capability(:smb_validate_password,
smb_username, smb_password)
machine, smb_username, smb_password)
end
break if auth_success