Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website: unable to change advanced Authentication Settings #625

Open
maxgaulhofer opened this issue Jun 22, 2023 · 1 comment
Open

Website: unable to change advanced Authentication Settings #625

maxgaulhofer opened this issue Jun 22, 2023 · 1 comment
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.

Comments

@maxgaulhofer
Copy link

Problem description

afbeelding

It is not possible to change the settings in the screenshot with DSC

Verbose logs

NA

DSC configuration

Create the new Website
        WebSite Website1 {
            Ensure             = 'Present'
            Name               = "$WebSiteName"
            # SiteId          = 100
            State              = 'Started'
            ServerAutoStart    = $true
            PhysicalPath       = "$WebsitesFolder\$WebSiteName"
            DependsOn          = '[File]WebContent1', '[WebAppPool]AppPool','[WindowsFeatureSet]AspNet45'
            ApplicationPool    = $WebSiteName
            BindingInfo        = @(
                DSC_WebBindingInformation
                {
                    Protocol             = 'HTTPS'
                    Port                 = 443
                    CertificateSubject   = $CertificateSubject
                    CertificateStoreName = 'MY'
                    SslFlags             = '1'
                    hostname             = $CertificateSubject
                }

            )
            AuthenticationInfo = `
                DSC_WebAuthenticationInformation
            {
                Anonymous = $true
                Basic     = $false
                Digest    = $false
                Windows   = $true
            }
        }

Suggested solution

Set the properties in object DSC_WebAuthenticationInformation
in Windows like:

  DSC_WebAuthenticationInformation
            {
                Anonymous = $true
                Basic     = $false
                Digest    = $false
                Windows   = DSC_WebAuthenticationInformationAdvanced
                  {
                  ExtendedProtection = 'On' #on, off, Accept
                  KernelModeProtection = #true #boolean
                  }
            }

Operating system the target node is running

WIndows Server 2022

PowerShell version and build the target node is running

ame                           Value
----                           -----
PSVersion                      5.1.20348.1366
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.20348.1366
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

WebAdministrationDsc version

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Manifest   4.1.0      WebAdministrationDSC
@johlju
Copy link
Member

johlju commented Jun 24, 2023

This could also be a separate resource WebSiteAuthenticationAdvancedSettings (naming is just a suggestion) if the settings are not required to be set on the same time as creation of the website.

@johlju johlju added enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community. labels Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue is an enhancement request. help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

No branches or pull requests

2 participants