Skip to content

Commit

Permalink
Merge pull request #1185 from ruandersMSFT/master-1161
Browse files Browse the repository at this point in the history
SPWebAppAuthentication + SPSearchContentSource v4
  • Loading branch information
ykuijs authored Mar 27, 2020
2 parents 65b2feb + 960b288 commit 450a15c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 30 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ resources:
- SPManagedMetaDataServiceAppDefault
- Updated resource to allow the configuration of default per service application
proxy groups instead of per farm
- SPSearchContentSource
- Discontinued CrawlEverything, CrawlFirstOnly and null as allowable CrawlSetting
values for a SharePoint based content source, requiring CrawlVirtualServers or
CrawlSites
- SPUserProfileServiceApp
- Changed the MySiteHostLocation parameter to a required parameter
- SPWebAppAuthentication
Expand All @@ -36,6 +40,8 @@ resources:
- SPFarmSolution
- Corrected bug running Solution Job wait for an Absent solution.
- Corrected bug trying to remove an already Absent solution.
- SPWebAppAuthentication
- Updated to support passing of null/empty collections for zones not utilized.

### Removed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,8 @@ function Set-TargetResource
{
throw "Parameter LimitServerHops is not valid for SharePoint content sources"
}
# Temporarily allow CrawlEverything, CrawlFirstOnly and Null (mapped to CrawlVirtualServers)
# until next major (breaking) version, as these were not previously blocked nor
# implemented. All equate to CrawlVirtualServers (default).
if ($CrawlSetting -ne "CrawlVirtualServers" -and
$CrawlSetting -ne "CrawlSites" -and
$CrawlSetting -ne "CrawlEverything" -and # Phaseout Major Release
$CrawlSetting -ne "CrawlFirstOnly" -and # Phaseout Major Release
$CrawlSetting -ne $null # Phaseout Major Release
$CrawlSetting -ne "CrawlSites"
)
{
throw ("Parameter CrawlSetting can only be set to CrawlVirtualServers or CrawlSites " + `
Expand Down Expand Up @@ -415,11 +409,6 @@ function Set-TargetResource
{
$newType = "SharePoint"
$newCrawlSetting = $crawlSetting
# Temporary mapping to CrawlVirtualServers until major (breaking) change
if ($newCrawlSetting -ne "CrawlSites")
{
$newCrawlSetting = "CrawlVirtualServers"
}
}
"Website"
{
Expand Down Expand Up @@ -812,14 +801,8 @@ function Test-TargetResource
{
throw "Parameter LimitServerHops is not valid for SharePoint content sources"
}
# Temporarily allow CrawlEverything, CrawlFirstOnly and Null (mapped to CrawlVirtualServers)
# until next major (breaking) version, as these were not previously blocked nor
# implemented. All equate to CrawlVirtualServers (default).
if ($CrawlSetting -ne "CrawlVirtualServers" -and
$CrawlSetting -ne "CrawlSites" -and
$CrawlSetting -ne "CrawlEverything" -and # Phaseout Major Release
$CrawlSetting -ne "CrawlFirstOnly" -and # Phaseout Major Release
$CrawlSetting -ne $null # Phaseout Major Release
$CrawlSetting -ne "CrawlSites"
)
{
throw ("Parameter CrawlSetting can only be set to CrawlVirtualServers or CrawlSites " + `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ function Set-TargetResource

$CurrentValues = Get-TargetResource @PSBoundParameters

if ($PSBoundParameters.ContainsKey("Default"))
if ($Default)
{
# Test is current config matches desired config
$result = Test-ZoneConfiguration -DesiredConfig $Default `
Expand All @@ -404,7 +404,7 @@ function Set-TargetResource
}
}

if ($PSBoundParameters.ContainsKey("Intranet"))
if ($Intranet)
{
# Check if specified zone exists
if ($CurrentValues.ContainsKey("Intranet") -eq $false)
Expand All @@ -423,7 +423,7 @@ function Set-TargetResource
}
}

if ($PSBoundParameters.ContainsKey("Internet"))
if ($Internet)
{
# Check if specified zone exists
if ($CurrentValues.ContainsKey("Internet") -eq $false)
Expand All @@ -442,7 +442,7 @@ function Set-TargetResource
}
}

if ($PSBoundParameters.ContainsKey("Extranet"))
if ($Extranet)
{
# Check if specified zone exists
if ($CurrentValues.ContainsKey("Extranet") -eq $false)
Expand All @@ -461,7 +461,7 @@ function Set-TargetResource
}
}

if ($PSBoundParameters.ContainsKey("Custom"))
if ($Custom)
{
# Check if specified zone exists
if ($CurrentValues.ContainsKey("Custom") -eq $false)
Expand Down Expand Up @@ -533,7 +533,7 @@ function Test-TargetResource
return $false
}

if ($PSBoundParameters.ContainsKey("Default"))
if ($Default)
{
$result = Test-ZoneConfiguration -DesiredConfig $Default `
-CurrentConfig $CurrentValues.Default `
Expand All @@ -546,7 +546,7 @@ function Test-TargetResource
}
}

if ($PSBoundParameters.ContainsKey("Intranet"))
if ($Intranet)
{
if ($CurrentValues.ContainsKey("Intranet") -eq $false)
{
Expand All @@ -564,7 +564,7 @@ function Test-TargetResource
}
}

if ($PSBoundParameters.ContainsKey("Internet"))
if ($Internet)
{
if ($CurrentValues.ContainsKey("Internet") -eq $false)
{
Expand All @@ -582,7 +582,7 @@ function Test-TargetResource
}
}

if ($PSBoundParameters.ContainsKey("Extranet"))
if ($Extranet)
{
if ($CurrentValues.ContainsKey("Extranet") -eq $false)
{
Expand All @@ -600,7 +600,7 @@ function Test-TargetResource
}
}

if ($PSBoundParameters.ContainsKey("Custom"))
if ($Custom)
{
if ($CurrentValues.ContainsKey("Custom") -eq $false)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Updated author, copyright notice, and URLs.
ServiceAppName = "Search Service Application"
ContentSourceType = "SharePoint"
Addresses = @("http://sharepointsite1.contoso.com", "http://sharepointsite2.contoso.com")
CrawlSetting = "CrawlEverything"
CrawlSetting = "CrawlSites"
ContinuousCrawl = $true
FullSchedule = $null
Priority = "Normal"
Expand Down

0 comments on commit 450a15c

Please sign in to comment.