Skip to content

Commit 089dfd7

Browse files
authored
Merge pull request #401 from puppetlabs/CAT-2274-support-managing-forms-within-authenticationinfo-for-puppetlabs-iis-resources-case-01325478
(CAT-2274): Add support for forms authentication in web administration templates
2 parents 574d48a + 1a01d96 commit 089dfd7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/puppet/provider/templates/webadministration/_getwebsites.ps1.erb

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ Get-WebSite | % {
2020
'clientCertificateMapping',
2121
'digest',
2222
'iisClientCertificateMapping',
23-
'windows'
23+
'windows',
24+
'forms'
2425
)
2526
$authenticationTypes | Foreach-Object -Begin { $info = @{} } -Process {
2627
$p = Get-WebConfiguration -Filter "system.webserver/security/authentication/$($_)Authentication" -PSPath "IIS:\sites\$($name)"

lib/puppet/provider/templates/webadministration/getapps.ps1.erb

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Get-WebApplication | % {
2626
clientCertificateMapping = [bool](Get-WebConfiguration -Location "${site}/${name}" -Filter "system.webserver/security/authentication/clientCertificateMappingAuthentication").enabled
2727
iisClientCertificateMapping = [bool](Get-WebConfiguration -Location "${site}/${name}" -Filter "system.webserver/security/authentication/iisClientCertificateMappingAuthentication").enabled
2828
windows = [bool](Get-WebConfiguration -Location "${site}/${name}" -Filter "system.webserver/security/authentication/windowsAuthentication").enabled
29+
forms = [bool](Get-WebConfiguration -Location "${site}/${name}" -Filter "system.webserver/security/authentication/formsAuthentication").enabled
2930
}
3031
enabledprotocols = [string]$_.enabledProtocols
3132
}

0 commit comments

Comments
 (0)