iis - 如何创建用于基本身份验证的用户帐户?

标签 iis iis-7 basic-authentication

我想向我的网站添加基本身份验证。我按照 MSDN 文章 Configure Basic Authentication (IIS 7) 中的说明进行操作。

To use the UI

  1. Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).
  2. In Features View, double-click Authentication.
  3. On the Authentication page, select Basic Authentication.
  4. In the Actions pane, click Enable to use Basic authentication with the default settings.
  5. Optionally, in the Actions pane, click Edit to type the default domain and realm.
  6. In the Edit Basic Authentication Settings dialog box, in the Default domain text box, type a default domain or leave it blank. Users who do not provide a domain when they log on to your site are authenticated against this domain.
  7. In the Realm text box, type a realm or leave it blank. In general, you can use the same value for the realm name as you used for the default domain.
    • Important
      If you enter the default domain name in the Realm text box, your internal Microsoft Windows domain name may be exposed to external users during the user name and password challenge.
  8. Click OK to close the Edit Basic Authentication Settings dialog box.

这是我到目前为止所做的事情:

IIS Manager - Authentication Authentication Page - Basic Authentication

现在我需要创建一个用户帐户以进行基本身份验证。

有人知道如何在 IIS 管理器中创建用户吗?

最佳答案

右键单击计算机并选择“管理”(或转至控制面板 > 管理工具 > 计算机管理),然后在“本地用户和组”下您可以添加新用户。然后,授予该用户读取托管网站的目录的权限。

注意:创建用户后,请务必编辑用户并删除所有角色。

关于iis - 如何创建用于基本身份验证的用户帐户?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5373497/

相关文章:

windows - 验证返回码 : 20 when testing OpenSSL

c# - 为什么 ConfigurationManager.GetSection "system.webServer/handlers"不可用?

.net - 如何将大 (> 25MB) 文件上传到 Web 服务?

当用户名和密码包含特殊字符时,通过 Selenium 进行 Python HTTP 基本身份验证

apache - 使用 tomcat 基本身份验证从 Web 应用程序注销

authentication - 通过单一身份验证机制对多个 Web 应用程序进行身份验证

IIS URL 重写改为重定向

asp.net - Web 服务调用失败,出现 5xx 类型错误

asp.net - log4net 在 IIS7 上部署时不会创建日志文件

c# - 使用 LibreOffice(soffice.exe) 作为 Process.Start() from Code behind 不在 IIS 服务器上工作