Skip to content

Website: unable to change advanced Authentication Settings #625

@maxgaulhofer

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

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