Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- ExchEcpVirtualDirectory
- Added parameter `OAuthAuthentication`
- ExchOwaVirtualDirectory
- Added parameter `OAuthAuthentication`

### Fixed

- azure-pipelines.yml
- Specified version of GitVersion.Tool to use 5.*

## [2.0.0] - 2023-04-19

### Changed
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ parameters.
- **GzipLevel**
- **ExternalUrl**
- **InternalUrl**
- **OAuthAuthentication**
- **WindowsAuthentication**
- **WSSecurityAuthentication**

Expand Down Expand Up @@ -1476,6 +1477,7 @@ parameters.
- **InstantMessagingType**
- **LogonPagePublicPrivateSelectionEnabled**
- **LogonPageLightSelectionEnabled**
- **OAuthAuthentication**
- **UNCAccessOnPublicComputersEnabled**
- **UNCAccessOnPrivateComputersEnabled**
- **WindowsAuthentication**
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ stages:
vmImage: 'windows-latest'
steps:
- pwsh: |
dotnet tool install --global GitVersion.Tool
dotnet tool install --global GitVersion.Tool --version 5.*
$gitVersionObject = dotnet-gitversion | ConvertFrom-Json
$gitVersionObject.PSObject.Properties.ForEach{
Write-Host -Object "Setting Task Variable '$($_.Name)' with value '$($_.Value)'."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ function Get-TargetResource
[System.String]
$InternalUrl,

[Parameter()]
[System.Boolean]
$OAuthAuthentication,

[Parameter()]
[System.Boolean]
$OwaOptionsEnabled,
Expand Down Expand Up @@ -172,6 +176,7 @@ function Get-TargetResource
FormsAuthentication = [System.Boolean] $EcpVdir.FormsAuthentication
GzipLevel = [System.String] $EcpVdir.GzipLevel
InternalUrl = [System.String] $EcpVdir.InternalUrl
OAuthAuthentication = [System.Boolean] $EcpVdir.OAuthAuthentication
WindowsAuthentication = [System.Boolean] $EcpVdir.WindowsAuthentication
OwaOptionsEnabled = [System.Boolean] $EcpVdir.OwaOptionsEnabled
}
Expand Down Expand Up @@ -318,6 +323,10 @@ function Set-TargetResource
[System.String]
$InternalUrl,

[Parameter()]
[System.Boolean]
$OAuthAuthentication,

[Parameter()]
[System.Boolean]
$OwaOptionsEnabled,
Expand Down Expand Up @@ -501,6 +510,10 @@ function Test-TargetResource
[System.String]
$InternalUrl,

[Parameter()]
[System.Boolean]
$OAuthAuthentication,

[Parameter()]
[System.Boolean]
$OwaOptionsEnabled,
Expand Down Expand Up @@ -581,10 +594,16 @@ function Test-TargetResource
{
$testResults = $false
}

if (!(Test-ExchangeSetting -Name 'OwaOptionsEnabled' -Type 'Boolean' -ExpectedValue $OwaOptionsEnabled -ActualValue $EcpVdir.OwaOptionsEnabled -PSBoundParametersIn $PSBoundParameters -Verbose:$VerbosePreference))
{
$testResults = $false
}

if (!(Test-ExchangeSetting -Name 'OAuthAuthentication' -Type 'Boolean' -ExpectedValue $OAuthAuthentication -ActualValue $EcpVdir.OAuthAuthentication -PSBoundParametersIn $PSBoundParameters -Verbose:$VerbosePreference))
{
$testResults = $false
}
}

return $testResults
Expand Down Expand Up @@ -731,6 +750,10 @@ function Get-EcpVirtualDirectoryInternal
[System.String]
$InternalUrl,

[Parameter()]
[System.Boolean]
$OAuthAuthentication,

[Parameter()]
[System.Boolean]
$OwaOptionsEnabled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class DSC_ExchEcpVirtualDirectory : OMI_BaseResource
[Write, Description("The GzipLevel parameter sets Gzip configuration information for the ECP virtual directory."), ValueMap{"Off", "Low", "High", "Error"}, Values{"Off", "Low", "High", "Error"}] String GzipLevel;
[Write, Description("The ExternalURL parameter specifies the URL that's used to connect to the virtual directory from outside the firewall.")] String ExternalUrl;
[Write, Description("The InternalURL parameter specifies the URL that's used to connect to the virtual directory from inside the firewall.")] String InternalUrl;
[Write, Description("The OAuthAuthentication parameter specifies whether OAuth authentication is enabled on the virtual directory. ")] Boolean OAuthAuthentication;
[Write, Description("Specifies that Outlook on the web Options is enabled for end users.")] Boolean OwaOptionsEnabled;
[Write, Description("The WindowsAuthentication parameter specifies whether Integrated Windows authentication is enabled on the virtual directory.")] Boolean WindowsAuthentication;
};
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@
[System.Boolean]
$LogonPageLightSelectionEnabled,

[Parameter()]
[System.Boolean]
$OAuthAuthentication,

[Parameter()]
[System.Boolean]
$UNCAccessOnPublicComputersEnabled,
Expand Down Expand Up @@ -164,6 +168,7 @@
LogonFormat = [System.String] $OwaVdir.LogonFormat
LogonPageLightSelectionEnabled = [System.Boolean] $OwaVdir.LogonPageLightSelectionEnabled
LogonPagePublicPrivateSelectionEnabled = [System.Boolean] $OwaVdir.LogonPagePublicPrivateSelectionEnabled
OAuthAuthentication = [System.Boolean] $OwaVdir.OAuthAuthentication
UNCAccessOnPublicComputersEnabled = [System.Boolean] $OwaVdir.UNCAccessOnPublicComputersEnabled
UNCAccessOnPrivateComputersEnabled = [System.Boolean] $OwaVdir.UNCAccessOnPrivateComputersEnabled
WindowsAuthentication = [System.Boolean] $OwaVdir.WindowsAuthentication
Expand Down Expand Up @@ -272,6 +277,10 @@
[System.Boolean]
$LogonPageLightSelectionEnabled,

[Parameter()]
[System.Boolean]
$OAuthAuthentication,

[Parameter()]
[System.Boolean]
$UNCAccessOnPublicComputersEnabled,
Expand Down Expand Up @@ -431,6 +440,10 @@
[System.Boolean]
$LogonPageLightSelectionEnabled,

[Parameter()]
[System.Boolean]
$OAuthAuthentication,

[Parameter()]
[System.Boolean]
$UNCAccessOnPublicComputersEnabled,
Expand Down Expand Up @@ -616,6 +629,11 @@
{
$testResults = $false
}

if (!(Test-ExchangeSetting -Name 'OAuthAuthentication' -Type 'Boolean' -ExpectedValue $OAuthAuthentication -ActualValue $OwaVdir.OAuthAuthentication -PSBoundParametersIn $PSBoundParameters -Verbose:$VerbosePreference))

Check warning on line 633 in source/DSCResources/DSC_ExchOwaVirtualDirectory/DSC_ExchOwaVirtualDirectory.psm1

View check run for this annotation

Codecov / codecov/patch

source/DSCResources/DSC_ExchOwaVirtualDirectory/DSC_ExchOwaVirtualDirectory.psm1#L633

Added line #L633 was not covered by tests
{
$testResults = $false

Check warning on line 635 in source/DSCResources/DSC_ExchOwaVirtualDirectory/DSC_ExchOwaVirtualDirectory.psm1

View check run for this annotation

Codecov / codecov/patch

source/DSCResources/DSC_ExchOwaVirtualDirectory/DSC_ExchOwaVirtualDirectory.psm1#L635

Added line #L635 was not covered by tests
}
}

return $testResults
Expand Down Expand Up @@ -718,6 +736,10 @@
[System.Boolean]
$LogonPageLightSelectionEnabled,

[Parameter()]
[System.Boolean]
$OAuthAuthentication,

[Parameter()]
[System.Boolean]
$UNCAccessOnPublicComputersEnabled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class DSC_ExchOwaVirtualDirectory : OMI_BaseResource
[Write, ValueMap{"None", "Ocs"}, Values{"None", "Ocs"}] String InstantMessagingType;
[Write] Boolean LogonPagePublicPrivateSelectionEnabled;
[Write] Boolean LogonPageLightSelectionEnabled;
[Write] Boolean OAuthAuthentication;
[Write] Boolean UNCAccessOnPublicComputersEnabled;
[Write] Boolean UNCAccessOnPrivateComputersEnabled;
[Write] Boolean WindowsAuthentication;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ if ($exchangeInstalled)
FormsAuthentication = $true
GzipLevel = 'Off'
InternalUrl = "https://$($serverFqdn)/ecp"
OAuthAuthentication = $false
WindowsAuthentication = $false
}

Expand All @@ -55,6 +56,7 @@ if ($exchangeInstalled)
FormsAuthentication = $true
GzipLevel = 'Off'
InternalUrl = "https://$($serverFqdn)/ecp"
OAuthAuthentication = $false
WindowsAuthentication = $false
}

Expand All @@ -72,6 +74,7 @@ if ($exchangeInstalled)
FormsAuthentication = $false
GzipLevel = 'High'
InternalUrl = ''
OAuthAuthentication = $true
WindowsAuthentication = $true
}

Expand All @@ -84,6 +87,7 @@ if ($exchangeInstalled)
FormsAuthentication = $false
GzipLevel = 'High'
InternalUrl = ''
OAuthAuthentication = $true
WindowsAuthentication = $true
}

Expand All @@ -98,6 +102,7 @@ if ($exchangeInstalled)
BasicAuthentication = $true
DigestAuthentication = $false
FormsAuthentication = $true
OAuthAuthentication = $false
WindowsAuthentication = $false
}

Expand All @@ -106,6 +111,7 @@ if ($exchangeInstalled)
BasicAuthentication = $true
DigestAuthentication = $false
FormsAuthentication = $true
OAuthAuthentication = $false
WindowsAuthentication = $false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ if ($exchangeInstalled)
InternalUrl = "https://$($serverFqdn)/owa"
LogonPagePublicPrivateSelectionEnabled = $true
LogonPageLightSelectionEnabled = $true
OAuthAuthentication = $false
UNCAccessOnPublicComputersEnabled = $true
UNCAccessOnPrivateComputersEnabled = $true
WindowsAuthentication = $false
Expand Down Expand Up @@ -98,6 +99,7 @@ if ($exchangeInstalled)
InternalUrl = "https://$($serverFqdn)/owa"
LogonPagePublicPrivateSelectionEnabled = $true
LogonPageLightSelectionEnabled = $true
OAuthAuthentication = $false
UNCAccessOnPublicComputersEnabled = $true
UNCAccessOnPrivateComputersEnabled = $true
WindowsAuthentication = $false
Expand Down Expand Up @@ -130,6 +132,7 @@ if ($exchangeInstalled)
InternalUrl = ''
LogonPagePublicPrivateSelectionEnabled = $false
LogonPageLightSelectionEnabled = $false
OAuthAuthentication = $true
UNCAccessOnPublicComputersEnabled = $false
UNCAccessOnPrivateComputersEnabled = $false
WindowsAuthentication = $true
Expand Down Expand Up @@ -158,6 +161,7 @@ if ($exchangeInstalled)
InternalUrl = ''
LogonPagePublicPrivateSelectionEnabled = $false
LogonPageLightSelectionEnabled = $false
OAuthAuthentication = $true
UNCAccessOnPublicComputersEnabled = $false
UNCAccessOnPrivateComputersEnabled = $false
WindowsAuthentication = $true
Expand All @@ -178,6 +182,7 @@ if ($exchangeInstalled)
BasicAuthentication = $true
DigestAuthentication = $false
FormsAuthentication = $true
OAuthAuthentication = $false
WindowsAuthentication = $false
}

Expand All @@ -186,6 +191,7 @@ if ($exchangeInstalled)
BasicAuthentication = $true
DigestAuthentication = $false
FormsAuthentication = $true
OAuthAuthentication = $false
WindowsAuthentication = $false
}

Expand Down
1 change: 1 addition & 0 deletions tests/Unit/DSC_ExchEcpVirtualDirectory.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ try
FormsAuthentication = [System.Boolean] $false
GzipLevel = [System.String] ''
InternalUrl = [System.String] ''
OAuthAuthentication = [System.Boolean] $false
WindowsAuthentication = [System.Boolean] $false
OwaOptionsEnabled = [System.Boolean] $false
}
Expand Down
1 change: 1 addition & 0 deletions tests/Unit/DSC_ExchOwaVirtualDirectory.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ try
LogonFormat = [System.String] ''
LogonPageLightSelectionEnabled = [System.Boolean] $false
LogonPagePublicPrivateSelectionEnabled = [System.Boolean] $false
OAuthAuthentication = [System.Boolean] $false
UNCAccessOnPublicComputersEnabled = [System.Boolean] $false
UNCAccessOnPrivateComputersEnabled = [System.Boolean] $false
WindowsAuthentication = [System.Boolean] $false
Expand Down