One important feature about an LDAP database is that it can
be distributed over multiple servers. If we are querying the LDAP database for
some information which could not be found in the current server, the LDAP v3
standards provide the mechanism for the server which makes it possible for the
server to return a referral to the client containing the information about an
alternate server. The advantage of this mechanism can be taken very well in
ColdFusion as it handles referrals automatically. If the referral attribute of
CFLDAP tag has a non-zero value, then the request is automatically sent by the
ColdFusion to the specified server in the referral. The value of this attribute
depends on various factors like the importance of response speed, the topology
of the distributed LDAP directory and the importance of the completeness of the
response. This attribute’s value decides the number of referrals allowed for a
request. For example, if the value 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’s value is 2, the same scenario does not give an error, and
returns the required response data if found in server C. The rebind attribute
of CFLDAP tag plays its role in this perspective. It specifies the whether to
use CFLDAP tag login information in the request to the new server.