I'm still working on this ldap problem and I'm getting closer.
This particular thing is making me crazy though. I'm moving the ldap
request (which only has one response) into a structure.
My code says this:
<cfldap action="QUERY" attributes="uid,displayName" name="ldap"
scope="SUBTREE" start="o=University of Minnesota, c=US"
filter="(&(cn=*#x500ID#*))" server="ldap.umn.edu"
port="389" >
<cfloop list="#ldap.ColumnList#" index="column">
<cfset thisColumn="#column#">
<cfset args["#thisColumn#"]=ldap["#thisColumn#"] />
<cfoutput>#args[thisColumn]#</cfoutput> <!--- for
debugging --->
</cfloop>
Which gives me this error: "Complex object types cannot be converted to
simple values."
And I said "huh, I didn't expect that to be an object" So I asked a
friend of mine and he suggested adding the "##" and maybe putting the
column in the variable name because he found CF to be a bit buggy in
situations like these. So I tried:
<cfloop list="#ldap.ColumnList#" index="column">
<cfset thisColumn="#column#">
<cfset args["#thisColumn#"]=ldap["#thisColumn#"] />
<cfoutput>#args[thisColumn]#</cfoutput> <!--- for
debugging --->
</cfloop>
Same error.
So I say "fine be that way and I try this:
<cfloop list="#ldap.ColumnList#" index="column">
<cfset thisColumn="#column#">
<cfset
args["#thisColumn#"]=ldap["#ldap[thisColumn.value]#"] />
<cfoutput>#args[thisColumn]#</cfoutput> <!--- for
debugging --->
</cfloop>
Then the error is: "You have attempted to dereference a scalar variable
of type class java.lang.String as a structure with members."
Which (seems to me) to be a direct contradiction of the previous error.
How do I make this work?
Thanks in advance
Joelle Tegwen
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1792
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54