You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
^ This shows that the chef-client registry_key resource found the entry and set the desired value. Observe the case insensitive nature of the NTLM in the Powershell and chef-client context.
Run an inspec test using this rule, currently used in compliance-profiles/base/windows/test/base_spec.rb:
rule 'windows-base-203' do
impact 1.0
title 'Enable Strong Encryption for Windows Network Sessions on Servers'
describe registry_key('HKLM\System\CurrentControlSet\Control\Lsa\MSV1_0') do
it { should exist }
its('NTLMMinServerSec') { should eq 537395200 }
end
end
Run an inspec test using this rule:
rule 'windows-base-203' do
impact 1.0
title 'Enable Strong Encryption for Windows Network Sessions on Servers'
describe registry_key('HKLM\System\CurrentControlSet\Control\Lsa\MSV1_0') do
it { should exist }
its('NtlmMinServerSec') { should eq 537395200 }
end
end
Expected results:
Test 4 succeeds
Test 5 succeeds
Actual results:
Test 4 fails with this output:
3) Registry Key HKLM\System\CurrentControlSet\Control\Lsa\MSV10 NTLMMinServerSec
Failure/Error: its('NTLMMinServerSec') { should eq 537395200 }
NoMethodError:
undefined method `[]' for nil:NilClass
# /Users/apop/.chefdk/gem/ruby/2.1.0/gems/inspec-0.9.3/lib/resources/registry_key.rb:56:in `method_missing'
# demo/windows/test/random.rb:48:in `block (3 levels) in load'
Test 5 succeeds
Test 4 fails because the registry_key inspec resource is case sensitive.
The text was updated successfully, but these errors were encountered:
Repro steps:
NTLMMinServerSec
to the desired value:^ This shows that the chef-client
registry_key
resource found the entry and set the desired value. Observe the case insensitive nature of the NTLM in the Powershell and chef-client context.compliance-profiles/base/windows/test/base_spec.rb
:Expected results:
Actual results:
Test 4 fails because the
registry_key
inspec resource is case sensitive.The text was updated successfully, but these errors were encountered: