IIS 7.5:以编程方式将“应用程序池用户"设置为匿名用户 [英] IIS 7.5: Setting 'app pool user' as the anonymous user programmatically

查看:132
本文介绍了IIS 7.5:以编程方式将“应用程序池用户"设置为匿名用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS 7.5中有一个Web应用程序,它具有使用.net 4的自己的AppPool.

I have an web app in IIS 7.5 with its own AppPool using .net 4.

我想使用具有匿名访问权限的功能作为应用程序池标识-可以通过inetmgr管理单元轻松在GUI中对其进行配置.

I want to use the feature of having anonymous access as the app pool identity - which is easily configured in a GUI via the inetmgr snapin.

是否可以通过编程方式(例如通过web.config)进行此操作?

Is there any way do this programmatically, for instance through web.config?

我环顾四周,看来 anonymousAuthentication 元素可以解决问题,但是并没有说明如何以任何重要方式指定应用程序池用户.我曾尝试将我的匿名用户设置为"IIS APPPOOL/[AppPoolName]",这似乎是建议的

I've looked around and it appears that the anonymousAuthentication element does the trick, but it does not explain how to specify the app pool user in any significant way. I've tried setting my anon user to 'IIS APPPOOL/[AppPoolName]' as seems to be suggested here, with no success.

关于应该如何配置的任何建议?

Any suggestions to how this is supposed to be configured?

推荐答案

仔细查看该链接:'如果将此值保留为空(即username ="),那么匿名身份验证将使用应用程序池标识来身份验证匿名用户'

'If you leave this value blank (that is, username=""), Anonymous authentication uses the application pool identity to authenticate anonymous users'

这篇关于IIS 7.5:以编程方式将“应用程序池用户"设置为匿名用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆