|
|
The newsletter page of this server will be password-protected. This means that everyone who accesses that page will need to provide a username and password to access the site. To set this up, you need to perform the following tasks.
When a user signs up, you can create an account on the web server for that user and e-mail the user their username and password. You can create a group as well to make NTFS permissions easier to manage.
Here’s how to create a group:
Open the Computer Management MMC.
Highlight Groups under Local Users and Groups.
Choose Action | New Group.
Type in the name of the group: BeerBrewers Newsletter Group.
Click Create.
Now we’ll create a user for the group:
In the MMC, highlight Users under Local Users and Groups.
Choose Action | New User.
Type in the username and password for the new user.
Uncheck the User Must Change Password At Next Logon checkbox.
Click Create.
Here’s how to add a new user to the group:
In the MMC, open Groups under Local Users and Groups.
Double-click the BeerBrewers Newsletter Group.
Click Add.
Choose the user account you wish to add to this group.
Click OK, and then click OK again.
After you have created the group, you will need to assign that group the rights to the file system. We assigned the anonymous group rights earlier; now it’s time to add the beerbrewers site group to the list. You need to add the group only to the file(s) that you want secured. In this case, it’s newsletter.htm.
In Windows Explorer, locate the newsletter.htm file.
Right-click the file, and choose Properties.
Open the Security tab.
Click Add.
Locate the BeerBrewers Newsletter Group.
Click OK.
Grant the BeerBrewers Newsletter Group read and execute permissions to the file.
Click OK.
Now that the NTFS permissions are set, it’s time to set up the security options in IIS. These permissions will need to be set up for both the test and production sites here, so you’ll need to perform this procedure twice.
Open the IIS MMC and locate the newsletter.htm file.
Right-click the file, and choose Properties.
Open the File Security tab.
Click the Edit button under Authentication And Access Control.
Uncheck the Enable Anonymous Access option.
For this site, we’ll use Basic authentication only, so check Basic Authentication, and uncheck Integrated Windows Authentication.
Click OK once; this will keep the File Security tab open.
Stop right there!
You: Hey, wait, a sec. Isn’t basic authentication really bad because it sends the plaintext password?
Me: Normally, yes. But, we have a certificate! All the traffic to this page will be encrypted.
You: OK, we do have a certificate, but how do you force people to use that?
Me: That’s next.
Here’s how to force SSL so we’re not sending plaintext passwords around the Internet:
Click the Edit button under Secure Communications.
Click the option to Require Secure Channel (SSL).
If you want, you can require 128-bit encryption, but that will mean that browsers that don’t have 128-bit encryption installed will not be able to access the site.
Click OK.
Click OK again.
Now this file will be password protected, and the password will be protected, too.
|
|