Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 479

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Accessing and Using Data
Code
<h2>Attribute Types</h2>
<table border="1" >
<tr>
<th>Name</th>
<th>Description</th>
<th>multivalued?</th>
</tr>
<cfloop index = "thisElement"
list = #ReplaceNoCase(EntryList2.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>
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
ColdFusion sends the request to the server specified in the referral.
The
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
attribute is 2, and server C has the information, the LDAP request succeeds. The value to use
referral
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
information in the request to the new server. The default, No, sends an anonymous login to the server.
Managing LDAP security
When you consider how to implement LDAP security, consider server security and application security.
Server security
The cfldap tag supports secure socket layer (SSL) v2 security. This security provides certificate-based validation of the
LDAP server. It also encrypts data transferred between the ColdFusion server and the LDAP server, including the user
password, and ensures the integrity of data passed between the servers. To specify SSL v2 security, set the
attribute.
secure="cfssl_basic"
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
REReplaceNoCase function to replace any comma that precedes the
word "alias" with an HTML
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 specifies whether ColdFusion uses the
rebind
Last updated 1/20/2012
<br>
tag.
attribute in the cfldap tag,
referral
cfldap
474
referral
tag login
tag
cfladap

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents