Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

CFLDAP Query

Posted on 2011-02-10
4
Medium Priority
?
933 Views
Last Modified: 2012-08-14
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.
0
Comment
Question by:forcecorp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 3

Accepted Solution

by:
sajayc earned 1500 total points
ID: 34867458
Hi,

If you do a cfdump of ADResults, what do you get? An empty structure?

Also in your start variable, you might need to put more info in to get further down the tree.
On our network we have it setup as: ourdomain.local
We used this as the start value: cn=users,dc=ourdomain,dc=local

Hope this helps,

Thanks,
0
 

Author Comment

by:forcecorp
ID: 34867544
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.
0
 

Author Comment

by:forcecorp
ID: 34867687
found the answer.

Using FQDN ====  DC=internal domain name(subdomain), DC=external domain name -.com.au, DC=com, DC=au
0
 

Author Closing Comment

by:forcecorp
ID: 34867688
start="DC=mysubdomain,DC=mydomain,DC=com,DC=au"
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
It’s time for spooky stories and consuming way too much sugar, including the many treats we’ve whipped for you in the world of tech. Check it out!
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question