Skip to content

Commit

Permalink
Merge pull request #1352 from ykuijs/bugfix
Browse files Browse the repository at this point in the history
[SPSearchServiceApp] Added SQL Auth check to Test method
  • Loading branch information
ykuijs authored Nov 5, 2021
2 parents c1f1df4 + d844b21 commit 138c692
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed issue where the resource was using hardcoded SP2016 and later paths
and therefore didn't work in SP2013
- SPSearchServiceApp
- Disabled Farm account DB ownership updating functions when using SQL Auth
- Disabled the Farm account DB ownership check when using SQL Auth
- SPServiceAppPool
- Fixed issue in Export method where the PsDscRunAsCredential was stored as
a string instead of a PsCredential object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,18 @@ function Test-TargetResource
Write-Verbose -Message "Testing Search service application '$Name'"

$PSBoundParameters.Ensure = $Ensure
$PSBoundParameters.FixFarmAccountPermissions = $FixFarmAccountPermissions

if ($UseSQLAuthentication -eq $true)
{
Write-Verbose ("Cannot check Farm Account permissions when SQL " + `
"DatabaseCredentials are specified.")
Write-Verbose "Setting FixFarmAccountPermissions to False"
$PSBoundParameters.FixFarmAccountPermissions = $false
}
else
{
$PSBoundParameters.FixFarmAccountPermissions = $FixFarmAccountPermissions
}

$CurrentValues = Get-TargetResource @PSBoundParameters

Expand Down

0 comments on commit 138c692

Please sign in to comment.