如何创建用于基本身份验证的用户帐户? [英] How do I create a user account for basic authentication?

查看:23
本文介绍了如何创建用于基本身份验证的用户帐户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想向我的网站添加基本身份验证.我按照有关

现在我需要为基本身份验证创建一个用户帐户.

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

解决方案

右键单击计算机"并选择管理"(或转到控制面板">管理工具">计算机管理"),然后在本地用户和组"下添加新用户.然后,授予该用户读取站点所在目录的权限.

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

I'd like to add basic authentication to my website. I followed the instructions in the MSDN article on 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.

Here's what I've done so far:

Now I need to create a user account for the basic authentication.

Does anyone know how to create users in IIS Manager?

解决方案

Right click on Computer and choose "Manage" (or go to Control Panel > Administrative Tools > Computer Management) and under "Local Users and Groups" you can add a new user. Then, give that user permission to read the directory where the site is hosted.

Note: After creating the user, be sure to edit the user and remove all roles.

这篇关于如何创建用于基本身份验证的用户帐户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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