
449
DEVELOPING
COLDFUSION 9 APPLICATIONS
Accessing and Using Data
Las
t
upda
te
d 8/5/2010
Passing queries by reference
A Query of Queries is copied by reference from its related query; which means that ColdFusion does not create a query
when you create a Query of Queries. It also means that changes to a Query of Queries, such as ordering, modifying,
and deleting data, are also applied to the base query object.
If you do not want the original query to change, use the Duplicate function to create a copy and create the Query of
Queries using the copied query.
Managing complex objects
You cannot use Query Of Queries on a recordset that contains complex objects, such as arrays and structures.
Note:
You can store a recordset in a complex object.
Managing LDAP Directories
CFML applications use the
cfldap
tag to access and manage LDAP (Lightweight Directory Access Protocol)
directories.
The following information teaches you to query and update an LDAP database. It is not assumed that you are familiar
with LDAP, and hence an introduction to LDAP directories and the LDAP protocol is provided. However, it is
assumed that you have information on the structure and attributes of your LDAP database. Hence, procedures to
create an LDAP directory or manage a directory server are not provided. To learn more about LDAP and LDAP
servers, see your LDAP server documentation and published books on LDAP.
The examples here use the Airius sample LDAP database that is supplied with the Netscape and iPlanet Directory
Servers.
About LDAP
The LDAP protocol enables organizations to arrange and access directory information in a hierarchy. In this context,
directory
refers to a collection of information, such as a telephone directory, not a collection of files in a folder on a
disk drive.
LDAP originated in the mid-1990s as a response to the need to access ISO X.500 directories from computers that had
limited processing power. Since then, products such as iPlanet Server have been developed that are native LDAP
directory servers. Several companies now provide LDAP access to their directory servers, including Novell NDS,
Microsoft Active Directory Services (ADS), Lotus Domino, and Oracle.
An LDAP directory is typically a hierarchically structured database. Each layer in the hierarchy typically corresponds
to a level of organizational structure.