mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
Added info on ntlm and credssp, updated configure script for credssp (#21175)
This commit is contained in:
parent
4b90f9cf89
commit
719e1840da
2 changed files with 87 additions and 12 deletions
|
@ -32,12 +32,14 @@
|
|||
# Updated by Michael Crilly <mike@autologic.cm>
|
||||
# Updated by Anton Ouzounov <Anton.Ouzounov@careerbuilder.com>
|
||||
# Updated by Dag Wieërs <dag@wieers.com>
|
||||
# Updated by Jordan Borean <jborean93@gmail.com>
|
||||
#
|
||||
# Version 1.0 - 2014-07-06
|
||||
# Version 1.1 - 2014-11-11
|
||||
# Version 1.2 - 2015-05-15
|
||||
# Version 1.3 - 2016-04-04
|
||||
# Version 1.4 - 2017-01-05
|
||||
# Version 1.5 - 2017-02-09
|
||||
|
||||
# Support -Verbose option
|
||||
[CmdletBinding()]
|
||||
|
@ -47,7 +49,8 @@ Param (
|
|||
[int]$CertValidityDays = 365,
|
||||
[switch]$SkipNetworkProfileCheck,
|
||||
$CreateSelfSignedCert = $true,
|
||||
[switch]$ForceNewSSLCert
|
||||
[switch]$ForceNewSSLCert,
|
||||
[switch]$EnableCredSSP
|
||||
)
|
||||
|
||||
Function Write-Log
|
||||
|
@ -258,6 +261,19 @@ Else
|
|||
Write-Verbose "Basic auth is already enabled."
|
||||
}
|
||||
|
||||
# If EnableCredSSP if set to true
|
||||
If ($EnableCredSSP)
|
||||
{
|
||||
# Check for CredSSP authentication
|
||||
$credsspAuthSetting = Get-ChildItem WSMan:\localhost\Service\Auth | Where {$_.Name -eq "CredSSP"}
|
||||
If (($credsspAuthSetting.Value) -eq $false)
|
||||
{
|
||||
Write-Verbose "Enabling CredSSP auth support."
|
||||
Enable-WSManCredSSP -role server -Force
|
||||
Write-Log "Enabled CredSSP auth support."
|
||||
}
|
||||
}
|
||||
|
||||
# Configure firewall to allow WinRM HTTPS connections.
|
||||
$fwtest1 = netsh advfirewall firewall show rule name="Allow WinRM HTTPS"
|
||||
$fwtest2 = netsh advfirewall firewall show rule name="Allow WinRM HTTPS" profile=any
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue