Chapter 1: ColdFusion Tags
119
The CFSSL_BASIC type of security provides V2 SSL, and the CFSSL_CLIENT_AUTH
type of security provides V3 SSL. V2 SSL provides encryption and server
authentication. V3 SSL adds to this certificate-based client authentication.
Both forms of security encrypt the conversation, and the server always sends a digital
certificate to confirm that it is the right server.
For CFSSL_BASIC, you must also specify the CFLDAP attributes USERNAME and
PASSWORD to authenticate yourself. V2 then encrypts the password prior to
transmission.
For CFSSL_CLIENT_AUTH, you do not send a user name and password; instead, you
perform authentication by a digital certificate that you send to the server.
CFSSL_CLIENT_AUTH is much more secure; however, it is difficult to administer since
all the clients must have certificates, which the server must be able to validate, and all
the certificates must have keys associated with them and passwords to protect those
keys.
Example
<!--- This example shows the use of CFLDAP --->
<HTML>
<HEAD>
<TITLE>CFLDAP Example</TITLE>
</HEAD>
<BODY bgcolor=silver>
<H3>CFLDAP Example</H3>
<P>CFLDAP provides an interface to LDAP (Lightweight Directory Access
Protocol) directory servers like BigFoot
(<a href="http://www.bigfoot.com">http://www.bigfoot.com</A>).
<P>Enter a name (try your own name) and search a public LDAP resource.
...
<!--- If the server has been defined, run the query --->
<CFIF IsDefined("form.server")>
<!--- check to see that there is a name listed --->
<CFIF form.name is not "">
<!--- make the LDAP query --->
<CFLDAP
SERVER="ldap.bigfoot.com"
ACTION="QUERY"
NAME="results"
START="cn=#name#,c=US"
FILTER="(cn=#name#)"
ATTRIBUTES="cn,o,l,st,c,mail,telephonenumber"
SORT="cn ASC">
<!--- Display results --->
<CENTER>
<TABLE BORDER=0 CELLSPACING=2 CELLPADDING=2>
<TR>
<TH COLSPAN=5><CFOUTPUT>#results.RecordCount# matches found
</CFOUTPUT></TH>
</TR>
<TR>
Summary of Contents for COLDFUSION 4.5-CFML LANGUAGE
Page 1: ...Allaire Corporation CFML Language Reference ColdFusion 4 5...
Page 207: ...Chapter 1 ColdFusion Tags 183 CFCATCH CFTRY BODY HTML...
Page 224: ...200 CFMLLanguageReference CFOUTPUT P Text within CFOUTPUT is always shown CFOUTPUT BODY HTML...
Page 336: ...312 CFMLLanguageReference CFIF BODY HTML...
Page 404: ...380 CFMLLanguageReference DE It is morning CFOUTPUT P BODY HTML...
Page 413: ...Chapter 2 ColdFusion Functions 389 Customer BalanceDue BR CFOUTPUT CFIF BODY HTML...
Page 483: ...Chapter 2 ColdFusion Functions 459 CFOUTPUT CFLOOP BODY HTML...
Page 584: ...560 CFMLLanguageReference...
Page 594: ...570 CFMLLanguageReference...