Skip to content

Update security_policy.rb to fix casing issue breaking idempotency - #132

Open
mit-da wants to merge 1 commit into
ayohrling:mainfrom
mit-da:patch-1
Open

Update security_policy.rb to fix casing issue breaking idempotency#132
mit-da wants to merge 1 commit into
ayohrling:mainfrom
mit-da:patch-1

Conversation

@mit-da

@mit-da mit-da commented Feb 22, 2026

Copy link
Copy Markdown

It seems having having the incorrect casing for LanManServer in the Microsoft network server: Server SPN target name validation level policy is causing this policy to apply repeatedly even though it is set correctly. Specifically the name is currently 'MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters\SmbServerNameHardeningLevel' when it should be 'MACHINE\System\CurrentControlSet\Services\LanManServer\Parameters\SmbServerNameHardeningLevel' like the rest of the values.

Verified this in our setup where before, it would show up during each puppet run, even though a quick pass at the registry value and secpol.msc showed it was set correctly. After this case change it now longer shows up.

It seems having having the incorrect casing for `LanManServer` in the `Microsoft network server: Server SPN target name validation level` policy is causing this policy to apply repeatedly even though it is set correctly. Specifically the name is currently `'MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters\SmbServerNameHardeningLevel'` when it should be `'MACHINE\System\CurrentControlSet\Services\LanManServer\Parameters\SmbServerNameHardeningLevel'` like the rest of the values.

Verified this in our setup where before, it would show up during each puppet run, even though a quick pass at the registry value and secpol.msc showed it was set correctly. After this case change it now longer shows up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant