Skip to content

Website: unable to change advanced Authentication Settings #625

Open

Description

@maxgaulhofer

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

Activity

  1. johlju commented on Jun 24, 2023

    @johlju
    Member

    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.

  2. added
    enhancementThe issue is an enhancement request.
    help wantedThe issue is up for grabs for anyone in the community.
    on Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThe issue is an enhancement request.help wantedThe issue is up for grabs for anyone in the community.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions