Skip to content

Commit

Permalink
xExchOwaVirtualDirectory: Add download domain parameters (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander Siemonsma authored Jul 25, 2022
1 parent 6093aeb commit e7c4de9
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 8 deletions.
12 changes: 8 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- xExchOwaVirtualDirectoryInternal
- Added parameters `ExternalDownloadHostName` and `InternalDownloadHostName`.

### Changed

- xExchange
- Update the pipeline files from the latest template in Sampler.
- xExchPopSettings
- Add missing ProtocolLogEnabled parameter
- Add missing ProtocolLogEnabled parameter.
- xExchWebServicesVirtualDirectory
- Fixed Typo

- Fixed typo.
- xExchangeHelper
- Fixed module import error ([Issue #481](https://github.com/dsccommunity/xExchange/issues/481))
- Fixed module import error ([issue #481](https://github.com/dsccommunity/xExchange/issues/481)).

## [1.33.0] - 2021-10-31

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1464,9 +1464,11 @@ parameters.
- **DigestAuthentication**
- **DomainController**
- **ExternalAuthenticationMethods**
- **ExternalDownloadHostName**
- **ExternalUrl**
- **FormsAuthentication**
- **GzipLevel**
- **InternalDownloadHostName**
- **InternalUrl**
- **InstantMessagingEnabled**
- **InstantMessagingCertificateThumbprint**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ function Get-TargetResource
[System.String[]]
$ExternalAuthenticationMethods,

[Parameter()]
[System.String]
$ExternalDownloadHostName,

[Parameter()]
[System.String]
$ExternalUrl,
Expand Down Expand Up @@ -77,6 +81,10 @@ function Get-TargetResource
[System.String]
$InstantMessagingType,

[Parameter()]
[System.String]
$InternalDownloadHostName,

[Parameter()]
[System.String]
$InternalUrl,
Expand Down Expand Up @@ -143,13 +151,15 @@ function Get-TargetResource
DefaultDomain = [System.String] $OwaVdir.DefaultDomain
DigestAuthentication = [System.Boolean] $OwaVdir.DigestAuthentication
ExternalAuthenticationMethods = [System.String[]] $OwaVdir.ExternalAuthenticationMethods
ExternalDownloadHostName = [System.String] $OwaVdir.ExternalDownloadHostName
ExternalUrl = [System.String] $OwaVdir.ExternalUrl.AbsoluteUri
FormsAuthentication = [System.Boolean] $OwaVdir.FormsAuthentication
GzipLevel = [System.String] $OwaVdir.GzipLevel
InstantMessagingCertificateThumbprint = [System.String] $OwaVdir.InstantMessagingCertificateThumbprint
InstantMessagingEnabled = [System.Boolean] $OwaVdir.InstantMessagingEnabled
InstantMessagingServerName = [System.String] $OwaVdir.InstantMessagingServerName
InstantMessagingType = [System.String] $OwaVdir.InstantMessagingType
InternalDownloadHostName = [System.String] $OwaVdir.InternalDownloadHostName
InternalUrl = [System.String] $OwaVdir.InternalUrl.AbsoluteUri
LogonFormat = [System.String] $OwaVdir.LogonFormat
LogonPageLightSelectionEnabled = [System.Boolean] $OwaVdir.LogonPageLightSelectionEnabled
Expand Down Expand Up @@ -212,6 +222,10 @@ function Set-TargetResource
[System.String[]]
$ExternalAuthenticationMethods,

[Parameter()]
[System.String]
$ExternalDownloadHostName,

[Parameter()]
[System.String]
$ExternalUrl,
Expand Down Expand Up @@ -242,6 +256,10 @@ function Set-TargetResource
[System.String]
$InstantMessagingType,

[Parameter()]
[System.String]
$InternalDownloadHostName,

[Parameter()]
[System.String]
$InternalUrl,
Expand Down Expand Up @@ -363,6 +381,10 @@ function Test-TargetResource
[System.String[]]
$ExternalAuthenticationMethods,

[Parameter()]
[System.String]
$ExternalDownloadHostName,

[Parameter()]
[System.String]
$ExternalUrl,
Expand Down Expand Up @@ -393,6 +415,10 @@ function Test-TargetResource
[System.String]
$InstantMessagingType,

[Parameter()]
[System.String]
$InternalDownloadHostName,

[Parameter()]
[System.String]
$InternalUrl,
Expand Down Expand Up @@ -580,6 +606,16 @@ function Test-TargetResource
{
$testResults = $false
}

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

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

return $testResults
Expand Down Expand Up @@ -632,6 +668,10 @@ function Get-OwaVirtualDirectoryInternal
[System.String[]]
$ExternalAuthenticationMethods,

[Parameter()]
[System.String]
$ExternalDownloadHostName,

[Parameter()]
[System.String]
$ExternalUrl,
Expand Down Expand Up @@ -662,6 +702,10 @@ function Get-OwaVirtualDirectoryInternal
[System.String]
$InstantMessagingType,

[Parameter()]
[System.String]
$InternalDownloadHostName,

[Parameter()]
[System.String]
$InternalUrl,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ class MSFT_xExchOwaVirtualDirectory : OMI_BaseResource
[Write] Boolean DigestAuthentication;
[Write] String DomainController;
[Write] String ExternalAuthenticationMethods[];
[Write] String ExternalDownloadHostName;
[Write] String ExternalUrl;
[Write] Boolean FormsAuthentication;
[Write, ValueMap{"Off", "Low", "High", "Error"}, Values{"Off", "Low", "High", "Error"}] String GzipLevel;
[Write] String InternalDownloadHostName;
[Write] String InternalUrl;
[Write] Boolean InstantMessagingEnabled;
[Write] String InstantMessagingCertificateThumbprint;
Expand All @@ -34,6 +36,3 @@ class MSFT_xExchOwaVirtualDirectory : OMI_BaseResource
[Write] String DefaultDomain;
[Write] Boolean SetPhotoEnabled;
};



Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,15 @@ if ($exchangeInstalled)
BasicAuthentication = $true
ChangePasswordEnabled = $true
DigestAuthentication = $false
ExternalDownloadHostName = 'downloaddomain.contoso.local'
ExternalUrl = "https://$($serverFqdn)/owa"
FormsAuthentication = $true
GzipLevel = 'Off'
InstantMessagingEnabled = $false
InstantMessagingCertificateThumbprint = ''
InstantMessagingServerName = ''
InstantMessagingType = 'None'
InternalDownloadHostName = 'downloaddomain.contoso.local'
InternalUrl = "https://$($serverFqdn)/owa"
LogonPagePublicPrivateSelectionEnabled = $true
LogonPageLightSelectionEnabled = $true
Expand All @@ -84,13 +86,15 @@ if ($exchangeInstalled)
ActionForUnknownFileAndMIMETypes = 'ForceSave'
ChangePasswordEnabled = $true
DigestAuthentication = $false
ExternalDownloadHostName = 'downloaddomain.contoso.local'
ExternalUrl = "https://$($serverFqdn)/owa"
FormsAuthentication = $true
GzipLevel = 'Off'
InstantMessagingEnabled = $false
InstantMessagingCertificateThumbprint = ''
InstantMessagingServerName = ''
InstantMessagingType = 'None'
InternalDownloadHostName = 'downloaddomain.contoso.local'
InternalUrl = "https://$($serverFqdn)/owa"
LogonPagePublicPrivateSelectionEnabled = $true
LogonPageLightSelectionEnabled = $true
Expand All @@ -114,13 +118,15 @@ if ($exchangeInstalled)
BasicAuthentication = $false
ChangePasswordEnabled = $false
DigestAuthentication = $true
ExternalDownloadHostName = ''
ExternalUrl = ''
FormsAuthentication = $false
GzipLevel = 'High'
InstantMessagingEnabled = $true
InstantMessagingCertificateThumbprint = $imCertThumbprint
InstantMessagingServerName = $env:COMPUTERNAME
InstantMessagingType = 'Ocs'
InternalDownloadHostName = ''
InternalUrl = ''
LogonPagePublicPrivateSelectionEnabled = $false
LogonPageLightSelectionEnabled = $false
Expand All @@ -140,13 +146,15 @@ if ($exchangeInstalled)
BasicAuthentication = $false
ChangePasswordEnabled = $false
DigestAuthentication = $true
ExternalDownloadHostName = ''
ExternalUrl = ''
FormsAuthentication = $false
GzipLevel = 'High'
InstantMessagingEnabled = $true
InstantMessagingCertificateThumbprint = $imCertThumbprint
InstantMessagingServerName = $env:COMPUTERNAME
InstantMessagingType = 'Ocs'
InternalDownloadHostName = ''
InternalUrl = ''
LogonPagePublicPrivateSelectionEnabled = $false
LogonPageLightSelectionEnabled = $false
Expand Down
3 changes: 2 additions & 1 deletion tests/Unit/MSFT_xExchOwaVirtualDirectory.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@ try
DefaultDomain = [System.String] ''
DigestAuthentication = [System.Boolean] $false
ExternalAuthenticationMethods = [System.String[]] @()
ExternalDownloadHostName = [System.String] ''
ExternalUrl = [System.String] ''
FormsAuthentication = [System.Boolean] $false
GzipLevel = [System.String] ''
InstantMessagingCertificateThumbprint = [System.String] ''
InstantMessagingEnabled = [System.Boolean] $false
InstantMessagingServerName = [System.String] ''
InstantMessagingType = [System.String] ''
InternalDownloadHostName = [System.String] ''
InternalUrl = [System.String] ''
LogonFormat = [System.String] ''
LogonPageLightSelectionEnabled = [System.Boolean] $false
Expand All @@ -65,4 +67,3 @@ finally
{
Invoke-TestCleanup
}

0 comments on commit e7c4de9

Please sign in to comment.