On Wednesday, Jan 22, 2003, at 14:38 US/Pacific, Jonathan Lane wrote:
> Does anyone know of a way to get CFLDAP to "bind" to an LDAP server.
> ...
> I've tried using the username and password attributes in CFLDAP to
> connect, but I always get an authentication error. Is this what the
> username/password attributes are for? Does anyone have any experience
> doing this?
Here's code from our system that connects to an LDAP server. See the
note below about username!
<cfldap action="query"
name="ldapQuery"
timeout="90"
attributes="cn,uid,dn"
start="o=#domainName#"
scope="subtree"
separator="$"
filter="(uid=#userName#)"
username="cn=#userName#"
password="#password#"
server="#ldapServerName#">
Note that username is specified as cn=someUserName not just plain
someUserName.
Sean A Corfield -- Director, Architecture
Web Technology Group -- Macromedia, Inc.
tel: (415) 252-2287 -- cell: (415) 717-8473
aim/iChat: seancorfield -- http://www.macromedia.com
An Architect's View -- http://www.macromedia.com/go/arch_blog
ColdFusion MX and JRun 4 now available for Mac OS X!
http://www.macromedia.com/go/cfmxosx
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4