IIS7:像在 IIS6 中一样设置集成 Windows 身份验证 [英] IIS7: Setup Integrated Windows Authentication like in IIS6

查看:29
本文介绍了IIS7:像在 IIS6 中一样设置集成 Windows 身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这适用于不属于 AD 域的 Windows Server 2008 上的 IIS 7.我想用密码保护一个网站,人们必须输入用户名/密码(例如 Windows 帐户)才能查看该网站.然后网站将使用自己的身份验证方法(表单)来处理用户帐户并决定是否显示会员特定页面等.

This is for IIS 7 on a Windows Server 2008 that is not part of an AD domain. I would like to password protect a website, where people have to enter a username/password (a windows account for example) to view the website. The website would then use its own authentication method (forms) to handle user accounts and decide whether or not to show member specific pages, etc.

在 IIS6 中,我们只是禁用了匿名访问并启用了集成的 Windows 身份验证.IIS7 的行为不同,当我输入 Windows 用户名/密码来查看该站点时,该站点正常运行,但重定向到登录页面.一旦我登录,该网站就会自然而然地运行.我需要能够在不使用网站凭据登录的情况下浏览网站.

With IIS6, we just disabled anonymous access and enabled integrated windows authentication. IIS7 behaves differently and when I enter the windows username/password to view the site, the site comes up fine but redirects to the login page. Once I log in, the site behaves naturally. I need to be able to navigate the site without logging in with the website credentials.

我不认为在这里启用匿名访问是有意义的,因为我希望对网站的访问受到密码保护(当您第一次导航到 url 时弹出用户名/密码对话框).

I don't think enabling anonymous access would make sense here since I want access to the website to be password protected (popup username/password dialog when you first navigate to the url).

感谢任何帮助!

推荐答案

IIS7 集成模式不支持两阶段身份验证.身份验证现在是模块化的,所以不是 IIS 执行身份验证,然后 asp.net 执行身份验证,而是同时发生.

Two-stage authentication is not supported with IIS7 Integrated mode. Authentication is now modularized, so rather than IIS performing authentication followed by asp.net performing authentication, it all happens at the same time.

您可以:

  1. 将应用域更改为 IIS6 经典模式...
  2. 关注这个例子 (旧链接) 如何使用 IIS7 集成模式伪造两阶段身份验证.
  3. 使用 Helicon Apemod_auth 提供基本身份验证
  1. Change the app domain to be in IIS6 classic mode...
  2. Follow this example (old link) of how to fake two-stage authentication with IIS7 integrated mode.
  3. Use Helicon Ape and mod_auth to provide basic authentication

这篇关于IIS7:像在 IIS6 中一样设置集成 Windows 身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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