User Guide
Chapter 1: ColdFusion Tags 115
CFLDAP
CFLDAP provides an interface to LDAP (Lightweight Directory Access Protocol)
directory servers like the Netscape Directory Server. For complete examples of
CFLDAP usage, refer to Developing Web Applications with ColdFusion.
Syntax <CFLDAP SERVER="server_name"
PORT="port_number"
USERNAME="name"
PASSWORD="password"
ACTION="action"
NAME="name"
TIMEOUT="seconds"
MAXROWS="number"
START="distinguished_name"
SCOPE="scope"
ATTRIBUTES="attribute, attribute"
FILTER="filter"
FILTERFILE="<file_name>,<stanza_name>"
SORT="attribute[, attribute]..."
SORTCONTROL="nocase" and/or "desc" or "asc"
DN="distinguished_name"
STARTROW="row_number"
MODIFYTYPE="REPLACE" or "ADD" or "DELETE"
REBIND="Yes/No"
REFERRAL="number_of_allowed_hops"
SECURE="multi_field_security_string"
SEPARATOR="separator_character"
>
SERVER
Required. Host name ("biff.upperlip.com") or IP address ("192.1.2.225") of the
LDAP server.
PORT
Optional. Port defaults to the standard LDAP port, 389.
USERNAME
Optional. If no user name is specified, the LDAP connection will be anonymous.
PASSWORD
Optional. Password corresponds to user name.
ACTION
Optional. Specifies the LDAP action. There are five possible values:
• Query — (Default) Returns LDAP entry information only. Requires NAME,
START, ATTRIBUTES attributes. See Usage for more information.
• Add — Adds LDAP entries to the LDAP server. Requires ATTRIBUTES.