Puppet Class: winrm::config::auth

Defined in:
manifests/config/auth.pp

Summary

Configures the different authentication methods that will be accepted on the system https://docs.microsoft.com/en-us/windows/win32/winrm/authentication-for-remote-connections

Overview

Examples:

Usage:

class { 'winrm::config::auth':
  auth_basic_enable     => false,
  auth_credssp_enable   => false,
  auth_kerberos_enable  => true,
  auth_negotiate_enable => true,
}

Parameters:

  • auth_basic_enable (Boolean) (defaults to: $winrm::auth_basic_enable)

    Is Basic Authentication allowed? Default is false

  • auth_credssp_enable (Boolean) (defaults to: $winrm::auth_credssp_enable)

    Is CredSSP Authentication allowed? Default is false

  • auth_kerberos_enable (Boolean) (defaults to: $winrm::auth_kerberos_enable)

    Is Kerberos Authentication allowed? Default is true

  • auth_negotiate_enable (Boolean) (defaults to: $winrm::auth_negotiate_enable)

    Is Negotiate Authentication allowed? Default is true



24
25
26
27
28
29
30
31
32
33
34
35
# File 'manifests/config/auth.pp', line 24

class winrm::config::auth (
  Boolean $auth_basic_enable     = $winrm::auth_basic_enable,
  Boolean $auth_credssp_enable   = $winrm::auth_credssp_enable,
  Boolean $auth_kerberos_enable  = $winrm::auth_kerberos_enable,
  Boolean $auth_negotiate_enable = $winrm::auth_negotiate_enable,
) {
  exec { 'Configure-Auth':
    command  => template('winrm/auth/auth_settings.ps1.erb'),
    provider => 'powershell',
    unless   => template('winrm/auth/auth_settings_onlyif.ps1.erb'),
  }
}