Ask Your Question
0

Is there a way to configure the Anonymous Authentication for a site to be 'Application pool idenity' in IIS using Puppet?

asked 2018-02-26 04:18:39 -0600

jenniferbeckingham gravatar image

I want my puppet script to set the anonymous authentication to be the 'Application pool identity' option for my site. I cannot see a way of setting this using the 'puppetlabs-iis' module. There are some related options, such as enabling it and passing in a user for the authentication, but nothing to specify it as 'Application pool identity'.

Does anyone know of a module that makes this possible, or a workaround?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-02-28 08:51:03 -0600

This currently isn't a feature of puppetlabs-iis as you've said. We can make a feature request for that module and Puppet will prioritize it and add it when they can. However in the interim, you can set this with a powershell exec statement, using the following documentation:

exec{'set-anon-auth':
  command => 'set-webconfigurationproperty /system.webServer/security/authentication/anonymousAuthentication -name userName -value ""',
  provider => 'powershell'
}
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-02-26 04:18:39 -0600

Seen: 334 times

Last updated: Feb 28