Solved

CFLDAP Query

Posted on 2011-02-10
4
920 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
  • 3
4 Comments
 
LVL 3

Accepted Solution

by:
sajayc earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
start="DC=mysubdomain,DC=mydomain,DC=com,DC=au"
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Mapping Drives using Group policy preferences Are you still using old scripts to map your network drives if so this article will show you how to get away for old scripts and move toward Group Policy Preference for mapping them. First things f…
Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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 from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now