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
Application.cfc
index.cfm
mm_wizard_application_include.cfm
mm_wizard_authenticate.cfc
mm_wizard_login.cfm
readme.txt
144
Chapter 13: Lesson 10: Restricting Access to ColdFusion Applications
Description
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">
You can replace this file with your own index.cfm file.
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.
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.
The ColdFusion Login page.
Describes the files that the Login Wizard creates.
Need help?
Do you have a question about the COLFUSION MX 7-GETTING STARTED BUILDING COLDFUSION MX and is the answer not in the manual?
Questions and answers