diff --git a/plugins/hosts/windows/plugin.rb b/plugins/hosts/windows/plugin.rb index f76d5c27d..640951047 100644 --- a/plugins/hosts/windows/plugin.rb +++ b/plugins/hosts/windows/plugin.rb @@ -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 diff --git a/plugins/synced_folders/smb/synced_folder.rb b/plugins/synced_folders/smb/synced_folder.rb index 5e99a4ef7..b6520cd52 100644 --- a/plugins/synced_folders/smb/synced_folder.rb +++ b/plugins/synced_folders/smb/synced_folder.rb @@ -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