tracker issue : CF-4199831

select a category, or use search below
(searches all categories and all time range)

CFLDAP result cannot be in LOCAL scope

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/Investigate

Reporter/Name(from Bugbase): Bernhard Döbler / Bernhard Döbler ()

Created: 09/27/2017

Components: Language, Tags

Versions: 2016,11.0,10.0

Failure Type: Others

Found In Build/Fixed In Build: 2016.0.05.303689 /

Priority/Frequency: Normal /

Locale/System: / Windows 10 64 bit

Vote Count: 0

Problem Description:
I call CFLDAP tag in a cffunction, and therefore pass local.ldapquery as name attribute to the CFLDAP tag

Steps to Reproduce:

<cffunction name="ldap" returntype="query">
	<cfldap server = "ldapserver.domain"
		port = "389"
		username = "user@domain"
		password = "secret"
		action = "query"
		name = "local.ldapquery"
		timeout = "60"
		start = "DC=domain,DC=de"
		scope = "subtree"
		attributes = "samAccountName,name,givenname"
		filter = "(&(objectclass=user)(objectCategory=Person)(samAccountName=user))"
		sort = "name ASC"

	<cfreturn ldapquery>
<cfdump var="#ldap()#">

Actual Result:
Throw: The value of the attribute name, which is currently local.ldapquery, is invalid. 

Expected Result:
Meaningful LDAP result

Any Workarounds:
I declare the variable using var keyword before calling cfldap.
<cfset var ldapquery="">

I notice this behaviour on Coldfusion 11 also. Workd in earlier versions, though.



Hi Bernhard, Please do let us know on which earlier version it was working for you. Thanks!
Comment by S P.
290 | October 05, 2017 10:06:48 AM GMT
Hi, we were on Coldfusion 9,0,1,274733 I took the Code to a new Coldfusion 11 server and it did not work there.
Comment by Bernhard D.
291 | October 12, 2017 02:28:44 PM GMT