IIS 7 - IIS 中的身份验证与 web.config 中的身份验证

发布于 2024-09-27 15:53:52 字数 201 浏览 0 评论 0原文

我对使用 IIS 7 比较陌生。我对 IIS 7 提供的各种选项感到困惑。

在我的 ASP.net 站点的 web.config 中设置身份验证模式=“Windows”有什么作用? 在 IIS 7 的身份验证模块中启用 Windows 身份验证有什么作用?

这两者有什么区别?其中一个会凌驾于另一个之上吗?无论您在集成模式还是经典模式下运行,这都会改变吗?

I'm relatively new to using IIS 7. I'm getting confused by the various options that IIS 7 provides.

What does setting authentication mode="Windows" do in the web.config of my ASP.net site do?
What does enabling Windows authentication in the Authentication module in IIS 7 do?

What is the difference between these two? Does one override the other? Does this change whether you run in integrated vs classic mode?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清风夜微凉 2024-10-04 15:53:52

IIS7 利用 web.config 文件。 IIS7 和 ASP.NET 紧密集成,web.config 中所做的任何更改都会反映在管理控制台中,并且管理控制台中的更改会将更改写入 web.config。

就 Windows 身份验证而言,它使用服务器本地 Windows 用户作为其用户存储。这对于具有严格安全要求和现有 Active Directory 用户群的 Intranet 应用程序通常更有用。

大多数面向互联网的应用程序应使用表单身份验证或自定义身份验证提供程序。您的用户存储可以位于 web.config 中,但大多数应用程序会将其用户存储保存在数据库中

IIS7 leverages web.config files. There is tight integration in IIS7 and ASP.NET any changes made in the web.config are reflected in the management console and changes in the management console write changes into the web.config.

As far as windows authentication it uses the servers local Windows users as its user store. This is typically more useful for an intranet application that has tight security requirements and existing active directory user base.

Most internet facing applications should use Forms authentication or a custom authentication provider. You user store can be in the web.config but most applications would keep their userstore in a database

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文