MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference page 143

Cfml language reference
Table of Contents

Advertisement

Chapter 1: ColdFusion Tags
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
<!---
<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>
</TR>
<TR>
This example shows the use of CFLDAP --->
<TH COLSPAN=5><CFOUTPUT>#results.RecordCount# matches found
</CFOUTPUT></TH>
119

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion 4.5

Table of Contents