Fix SMB credential validation on Windows hosts
This commit is contained in:
parent
0f2b1acb00
commit
c2df34298f
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user