Merge pull request #5805 from cisco87/patch-1
Use the extended password parameter, more compatible
This commit is contained in:
commit
6a926793d9
|
@ -33,7 +33,7 @@ module VagrantPlugins
|
|||
options[:mount_options] ||= []
|
||||
options[:mount_options] << "sec=ntlm"
|
||||
options[:mount_options] << "username=#{username}"
|
||||
options[:mount_options] << "pass=#{smb_password}"
|
||||
options[:mount_options] << "password=#{smb_password}"
|
||||
options[:mount_options] << "domain=#{domain}" if domain
|
||||
|
||||
# First mount command uses getent to get the group
|
||||
|
|
|
@ -18,7 +18,7 @@ describe "VagrantPlugins::GuestLinux::Cap::MountSharedFolder" do
|
|||
|
||||
describe ".mount_shared_folder" do
|
||||
describe "with a domain" do
|
||||
let(:mount_command) { "mount -t cifs -o uid=`id -u `,gid=`getent group | cut -d: -f3`,sec=ntlm,username=user,pass=pass,domain=domain //host/name " }
|
||||
let(:mount_command) { "mount -t cifs -o uid=`id -u `,gid=`getent group | cut -d: -f3`,sec=ntlm,username=user,password=pass,domain=domain //host/name " }
|
||||
before do
|
||||
communicator.expect_command mount_command
|
||||
communicator.stub_command mount_command, exit_code: 0
|
||||
|
@ -29,7 +29,7 @@ describe "VagrantPlugins::GuestLinux::Cap::MountSharedFolder" do
|
|||
end
|
||||
end
|
||||
describe "without a domain" do
|
||||
let(:mount_command) { "mount -t cifs -o uid=`id -u `,gid=`getent group | cut -d: -f3`,sec=ntlm,username=user,pass=pass //host/name " }
|
||||
let(:mount_command) { "mount -t cifs -o uid=`id -u `,gid=`getent group | cut -d: -f3`,sec=ntlm,username=user,password=pass //host/name " }
|
||||
before do
|
||||
communicator.expect_command mount_command
|
||||
communicator.stub_command mount_command, exit_code: 0
|
||||
|
@ -41,4 +41,4 @@ describe "VagrantPlugins::GuestLinux::Cap::MountSharedFolder" do
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue