User Guide

Table Of Contents
Advanced topics 543
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.
<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>
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