Here's the query I use to do this.
<cfldap action="query" name="authQuery" attributes="dn,memberof"
filter="samAccountName=#arguments.username#" start="#LDAPStartRoot#"
server="#variables.LDAPServerToUse#"
username="[EMAIL PROTECTED]"
password="#arguments.password#"/>
Notice that you have to append the domain to the username to get it to
work.
I'm currently trying to get LDAPS working, so if you can do it, that
would be preferable to what I currently have.
Terrence Ryan
Senior Systems Programmer
Wharton Computing and Information Technology
E-mail: [EMAIL PROTECTED]
-----Original Message-----
From: Sam Mayes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 18, 2006 12:27 PM
To: CF-Talk
Subject: CFLDAP and AD
Hi All Im trying to do some authentication with cfldap and Active
Directory and was wondering if anyone has come across this. Using cf
7.02
if my cn and displayname are the same ie: cn=test123 displayname=test123
i can authenticate just fine with just username and pass in the cfldap
call.
if they are different cn=test123 displayname=testuser I have to pass the
whole dn as the user ie: cn=test123 cn=users dn=orgname dn=company
dn=com
Is it a permission issue with the subtree query? Im at a loss as far as
why they authenticate differently ANY help would be lovely here is my
cfldap call:
<cftry>
<cfldap action="QUERY"
name="auth"
attributes="dn,cn,displayname,name,userPrincipalName,email,givenName,sn,
sAMAccountName"
start="DC=org,DC=company,DC=com"
scope="SUBTREE"
maxrows="1"
server="#ldapServer#"
username="#form.username#"
password="#form.password#">
<cfset isAuthenticated="true">
<cfcatch type="ANY">
<cfset isAuthenticated="no">
</cfcatch>
</cftry>
Sam
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:246921
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4