我想向我的网站添加基本身份验证。我按照 MSDN 文章 Configure Basic Authentication (IIS 7) 中的说明进行操作。
To use the UI
- 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).
- In Features View, double-click Authentication.
- On the Authentication page, select Basic Authentication.
- In the Actions pane, click Enable to use Basic authentication with the default settings.
- Optionally, in the Actions pane, click Edit to type the default domain and realm.
- 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.
- 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.- Click OK to close the Edit Basic Authentication Settings dialog box.
这是我到目前为止所做的事情:
现在我需要创建一个用户帐户以进行基本身份验证。
有人知道如何在 IIS 管理器中创建用户吗?
最佳答案
右键单击计算机并选择“管理”(或转至控制面板 > 管理工具 > 计算机管理),然后在“本地用户和组”下您可以添加新用户。然后,授予该用户读取托管网站的目录的权限。
注意:创建用户后,请务必编辑用户并删除所有角色。
关于iis - 如何创建用于基本身份验证的用户帐户?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5373497/