Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create a user account for basic authentication?

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:

IIS Manager - Authentication Authentication Page - Basic Authentication

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

Does anyone know how to create users in IIS Manager?

like image 617
Joseph Bi Avatar asked Mar 21 '11 03:03

Joseph Bi


People also ask

How do I set up Basic Authentication?

Scroll to the Security section in the Home pane, and then double-click Authentication. In the Authentication pane, select Basic Authentication, and then, in the Actions pane, click Enable.

How do I set Basic Authentication in HTTP?

To configure your web service client to use HTTP basic authentication, supply the HttpTransportProperties. Authenticator object in your client Java code, and specify a user name and a password. Set this configuration as an option of the web service client.


1 Answers

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.

like image 63
Josh M. Avatar answered Oct 09 '22 21:10

Josh M.