Status/Resolution/Reason: Closed/Won't Fix/Investigate
Reporter/Name(from Bugbase): Bernhard Döbler / Bernhard Döbler ()
Created: 09/27/2017
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:
{code:java}
<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>
</cffunction>
<cfdump var="#ldap()#">
{code}
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.
Attachments:
Comments: