Yes, we need to know which ldap server. If it's Windows Active Directory, you don't need to run two queries. You only need to pass the username/password to the cfldap tag. Windows, by default, allows any authenticated user to query the directory. If the query works, you have a valid user. If the query fails, you don't.
For Windows AD, the username should be formatted as one of: "[EMAIL PROTECTED]" or "domain\username" Other ldap servers may work differently and that is probably why Macromedia's docs say to run two queries. M!ke -----Original Message----- From: Douglas Knudsen [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 10, 2005 7:34 PM To: CF-Talk Subject: Re: LDAP Authentication In my experience, typically you run two LDAP queries for authentication. In the first you use the UID filed, depends on your LDAP server, to get teh users DN. THe second query you use this DN and the users password, if this binds you authed. What LDAP server are you using? DK On 5/10/05, David Critchley <[EMAIL PROTECTED]> wrote: > > I was wondering if anyone knows anything about LDAP authentication. > Examples from macromedia on this subject are very sketchy and I cant > seem to get mine to work properly. I can query the LDAP server, but I > am unable to authenticate. Here is my tag info: > <CFLDAP server="ldapserver" port="389" action="QUERY" name="userauth" > attributes="uid" start="ou=employees,o=server.com <http://server.com>" > maxrows="1"> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206426 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

