502
Chapter 23: Managing LDAP Directories
Referrals
An LDAP database can be distributed over multiple servers. If the requested information is not on
the current server, the LDAP v3 standard provides a mechanism for the server to return a referral
to the client that informs the client of an alternate server. (This feature is also included in some
LDAP v2-compliant servers.)
ColdFusion can handle referrals automatically. If you specify a nonzero
referral
attribute in the
cfldap
tag, ColdFusion sends the request to the server specified in the referral.
The
referral
attribute value specifies the number of referrals allowed for the request. For
example, if the
referral
attribute is 1, and server A sends a referral to server B, which then sends
a referral to server C, ColdFusion returns an error. If the
referral
attribute is 2, and server C has
the information, the LDAP request succeeds. The value to use depends on the topology of the
distributed LDAP directory, the importance of response speed, and the value of response
completeness.
When ColdFusion follows a referral, the
rebind
attribute specifies whether ColdFusion uses the
cfldap
tag login information in the request to the new server. The default, No, sends an
anonymous login to the server.
<h2>Attribute Types</h2>
<table border="1" >
<tr>
<th>Name</th>
<th>Description</th>
<th>Multivalued?</th>
</tr>
<cfloop index = "thisElement" list =
#ReplaceNoCase(attributeTypes, ",
alias", "<br> Alias", "all")#
delimiters = ",">
<cfscript>
thiselement = Trim(thisElement);
nameloc = Find("NAME",
thisElement);
descloc = Find("DESC",
thisElement);
syntaxloc = Find("SYNTAX",
thisElement);
singleloc = Find("SINGLE",
thisElement);
endloc = Len(thisElement);
</cfscript>
<tr>
<td><cfoutput>#Mid(thisElement,
6, descloc-nameloc-8)#
</cfoutput></td>
<td><cfoutput>#Mid(thisElement,
6, syntaxloc-descloc-8)
#</cfoutput></td>
<cfif #singleloc# EQ 0>
<td><cfoutput>Yes</cfoutput>
</td>
<cfelse>
<td><cfoutput>No</cfoutput>
</td>
</cfif>
</tr>
</cfloop>
</table>
</cfloop>
Does the same types of calculations for the
attribute types as for the object classes.
The attribute type field can contain the text ",
alias for....". This text includes a comma,
which also delimits attribute entries. Use the
ReplaceNoCase
function to replace any
comma that precedes the word "alias" with
an HTML
<br>
tag.
The attribute definition includes a numeric
syntax identifier, which the code does not
display, but uses its location in calculating
the locations of the other fields.
Code
Description
Summary of Contents for COLDFUSION MX 61-DEVELOPING COLDFUSION MX
Page 1: ...Developing ColdFusion MX Applications...
Page 22: ...22 Contents...
Page 38: ......
Page 52: ...52 Chapter 2 Elements of CFML...
Page 162: ......
Page 218: ...218 Chapter 10 Writing and Calling User Defined Functions...
Page 250: ...250 Chapter 11 Building and Using ColdFusion Components...
Page 264: ...264 Chapter 12 Building Custom CFXAPI Tags...
Page 266: ......
Page 314: ...314 Chapter 14 Handling Errors...
Page 344: ...344 Chapter 15 Using Persistent Data and Locking...
Page 349: ...About user security 349...
Page 357: ...Security scenarios 357...
Page 370: ...370 Chapter 16 Securing Applications...
Page 388: ...388 Chapter 17 Developing Globalized Applications...
Page 408: ...408 Chapter 18 Debugging and Troubleshooting Applications...
Page 410: ......
Page 426: ...426 Chapter 19 Introduction to Databases and SQL...
Page 476: ...476 Chapter 22 Using Query of Queries...
Page 534: ...534 Chapter 24 Building a Search Interface...
Page 556: ...556 Chapter 25 Using Verity Search Expressions...
Page 558: ......
Page 582: ...582 Chapter 26 Retrieving and Formatting Data...
Page 668: ......
Page 734: ...734 Chapter 32 Using Web Services...
Page 760: ...760 Chapter 33 Integrating J2EE and Java Elements in CFML Applications...
Page 786: ...786 Chapter 34 Integrating COM and CORBA Objects in CFML Applications...
Page 788: ......