Referrals - MACROMEDIA COLDFUSION MX 61-DEVELOPING COLDFUSION MX Develop Manual

Developing coldfusion mx applications
Table of Contents

Advertisement

Code
<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,
nameloc+6, descloc-nameloc-8)#
</cfoutput></td>
<td><cfoutput>#Mid(thisElement,
descloc+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>

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
tag, ColdFusion sends the request to the server specified in the referral.
cfldap
The
attribute value specifies the number of referrals allowed for the request. For
referral
example, if the
referral
a referral to server C, ColdFusion returns an error. If the
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
tag login information in the request to the new server. The default, No, sends an
cfldap
anonymous login to the server.
502
Chapter 23: Managing LDAP Directories
attribute is 1, and server A sends a referral to server B, which then sends
rebind
Description
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
function to replace any
ReplaceNoCase
comma that precedes the word "alias" with
an HTML
tag.
<br>
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.
attribute is 2, and server C has
referral
attribute specifies whether ColdFusion uses the
attribute in the
referral

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion mx

Table of Contents