forked from ansible/ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added info on ntlm and credssp, updated configure script for credssp (a…
- Loading branch information
1 parent
4b90f9c
commit 719e184
Showing
2 changed files
with
87 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,12 +32,14 @@ | |
# Updated by Michael Crilly <[email protected]> | ||
# Updated by Anton Ouzounov <[email protected]> | ||
# Updated by Dag Wieërs <[email protected]> | ||
# Updated by Jordan Borean <[email protected]> | ||
# | ||
# 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 | ||
|