144
Chapter 13: Lesson 10: Restricting Access to ColdFusion Applications
Preparing to run the Login Wizard
Before using the Login Wizard, you should determine the following information:
•
Which of the authentication types you want to use to restrict access to your application. The
types include the following:
■
LDAP, which grants access to users who have an entry in a known LDAP server.
■
NT, which grants access to users who belong to the specified Windows domain.
■
Simple authentication, which grants access to users who enter the user name and password
that you specify in the Login Wizard.
•
Whether you want the login page to appear as either of the following:
■
Basic authentication, which uses the browser login pop-up window to prompt the user for
login credentials.
■
ColdFusion Login page, which uses a web page to prompt the user for login credentials.
If the application for which you want to restrict access is deployed on a remote server, you should
synchronize the files that constitute the application with those that reside on your local server.
You should then use the Login Wizard to modify the files on your local server, and perform
testing before redeploying the application on the remote server. You can move the application files
to the remote server either by using the Login Wizard, which uses Dreamweaver, or by using
Dreamweaver directly.
Creating an application that includes user authentication
If you are creating an application, you can use the Login Wizard to create the files necessary for
user authentication before creating any other application files. The following table lists the files
that the Login Wizard creates for each type of authentication and type of login page:
File
Description
Application.cfc
This file is invoked every time any file in or under this
directory is called. You can modify this file as appropriate
for your application; however, you should not alter the
following line of code:
<cfinclude
template="mm_wizard_application_include.cfm">
index.cfm
You can replace this file with your own index.cfm file.
mm_wizard_application_include.cfm
This file contains the logic to determine if the user is a
valid user. If not, the application automatically redirects
the user to a login form. This file is an included call from
Application.cfc.
mm_wizard_authenticate.cfc
This file contains the method required to perform user
authentication. It creates a <cfloginuser>, which is the
ColdFusion MX 7 version of an authenticated user.
mm_wizard_login.cfm
The ColdFusion Login page.
readme.txt
Describes the files that the Login Wizard creates.
Содержание COLFUSION MX 7-GETTING STARTED BUILDING COLDFUSION...
Страница 1: ...COLDFUSION MX7 Getting Started Building ColdFusion MX Applications...
Страница 6: ...6 Contents...
Страница 10: ......
Страница 14: ...14 Chapter 1 Introducing ColdFusion MX...
Страница 38: ...38 Chapter 3 Database Fundamentals...
Страница 40: ......
Страница 58: ...58 Chapter 5 Lesson 2 Configuring Your Development Environment...
Страница 70: ...70 Chapter 6 Lesson 3 Retrieving Data...
Страница 84: ...84 Chapter 7 Lesson 4 Building Dynamic Queries...
Страница 96: ...96 Chapter 8 Lesson 5 Creating a Trip Detail Page...
Страница 102: ...102 Chapter 9 Lesson 6 Creating a Main Application Page...