1
votes

Need help with an ldap query, keep seeing this forum on my searches, so I'm hoping someone can point me in the right direction.

I'm using ColdFusion cfldap tag, but my queries keep returning just one record. I've tried all the cfoutput, cfloop, (around the output, not the query itself) cfdump tags that I can thing of, but nothing seems to work. I'm hoping the problem is with my query:

<cfldap action = "query"
         name="results" 
             attributes = "dn"             
         filter="(&(objectCategory=group)(name=#form.userid#*))" 
             start = "dc=hhsc,dc=org"        
         scope="SUBTREE"
             maxrows="99"
             server = ""
             username=""
             password=""
             sort="dn ASC"
         separator="," />

I'm trying to get a list of distribution groups that begin with the value I enter in the form field, but as mentioned, no matter what I do, it only returns the first record found.

Any help would be greatly appreciated.

1
What do you get if you run the exact same query via some other LDAP client?Adam Cameron

1 Answers

0
votes

Got it. In case it helps another noob like myself, create a variable using ValueList, the output the results of the variable.