Solved

CFLDAP Query

Posted on 2011-02-10
4
926 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 500 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

In-place Upgrading Dirsync to Azure AD Connect
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
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…
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.

734 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