304
Administering ColdFusion Server
[SmSampleUsers]
Query_Enumerate=select Name, ’User’ as Class from SmUser Union
select Name, ’Group’ as Class from SmGroup order by Class
Query_InitUser=select Name from SmUser where Name = ’%s’
Query_AuthenticateUser=select Name from SmUser where Name = ’%s’
and Password = ’%s’
Query_GetGroups=select SmGroup.Name from SmGroup, SmUser, SmUserGroup
where SmUser.Name = ’%s’ and SmUser.Id = SmUserGroup.UserId
and SmGroup.Id = SmUserGroup.GroupId
Query_GetUserProp=select %s from SmUser where Name = ’%s’
Query_SetUserProp=update SmUser set %s = %s where Name = ’%s’
Query_GetObjInfo=select Name, ’User’ from SmUser where Name = ’%s’
Union select Name, ’Group’ from SmGroup where Name = ’%s’
Query_GetUserProps=Name, Id, FirstName, LastName,
TelephoneNumber, EmailAddress
Query_IsGroupMember=select Id from SmUserGroup
where UserId = (select Id from SmUser where Name = ’%s’)
and GroupId = (select Id from SmGroup where Name = ’%s’)
Each ODBC data source you use for authenticating users requires a section of the same
name in this INI file. The section must contain the appropriate SQL statements to
authenticate users. You can use the SmSampleUsers section as an example.
Defining a Security Context
The Security Context is a logical set of resources grouped together from an
administrative perspective. It does not necessarily correspond to a ColdFusion
application or resource name. As its name suggests, the security context is used to
establish a context in which authentication and authorization actions are carried out.
For example, you might create a security context for a particular application
development effort. Within this context, you define users, groups, and rules that apply
to the developers who are working on the project. Another example: You define a
context for intranet users of the application you want to deploy. According to their
group affiliation, different rules apply, enabling or preventing various actions based on
their login.
The context establishes which types of resources you want to protect.
Содержание COLDFUSION 4.5-ADMINISTRING COLDFUSION...
Страница 1: ...Allaire Corporation Administering ColdFusion Server ColdFusion 4 5...
Страница 10: ...x Administering ColdFusion Server...
Страница 22: ...xxii AdministeringColdFusionServer...
Страница 48: ...26 Administering ColdFusion Server...
Страница 58: ...36 Administering ColdFusion Server...
Страница 60: ...38 Administering ColdFusion Server Using ColdFusion in a Distributed Configuration 68...
Страница 98: ...76 Administering ColdFusion Server...
Страница 150: ...128 Administering ColdFusion Server...
Страница 198: ...176 Administering ColdFusion Server...
Страница 205: ...Chapter 6 Creating Scalable and Highly Available Web Sites 183 3 Click the DNS tab...
Страница 304: ...282 Administering ColdFusion Server...
Страница 350: ...328 Administering ColdFusion Server...