Link to home
Create AccountLog in
Avatar of forcecorp
forcecorp

asked on

CFLDAP Query

Hi Guys,

I am trying to get a CFLDAP Query working.

Code:

<cfldap action="query"
           server="SERVER"
           name="ADResults"
           start="DC=DOMAIN NAME"
           filter="(&(objectclass=user)(SamAccountName='user'))"
           username="username"
           password="password"
           attributes = "cn,o,l,st,sn,c,mail,telephonenumber, givenname,homephone, streetaddress, postalcode, SamAccountname, physicalDeliveryOfficeName, department">

Using <cfoutput query="ADResults">
#cn# #o# etc
</cfoutput>

No error and no results shown.
ASKER CERTIFIED SOLUTION
Avatar of sajayc
sajayc
Flag of New Zealand image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of forcecorp
forcecorp

ASKER

I have tried tasking it down to the folder my own account is in, and is still does not return any results.

Have tried with dc=domain,dc=local
and dc=fqdn
and dc=domain controller

all return no results.
found the answer.

Using FQDN ====  DC=internal domain name(subdomain), DC=external domain name -.com.au, DC=com, DC=au
start="DC=mysubdomain,DC=mydomain,DC=com,DC=au"