Here's the function on my .cfc page:

<cffunction name="listUsers" access="remote" returnType="query" output="true">
                <cfargument name="userID" required="yes">
                  <cfset var getIDS = "">

                  <cfset var givenname = "First_name">
                  <cfset var sn = "Last_Name">
                  <cfset var mail = "Addr">
                  <cfset var dbaddress = "ADDRESS">
                  <cfset var dbcity = "City">
                  <cfset var dbstate = "State">
                  <cfset var dbzipcode = "ZIP">
                  <cfset var homephone = "PHONE">


<cfldap action="query"
    name="GetIDS"
    start="ou=ple,o=blah.com"
    filter="id=#userID#"
                    
attributes="givenname,sn,mail,dbaddress,dbcity,dbstate,dbzipcode,homephone"
 server="ds.blah.com" username="uid=asdf,ou=ReadOnly,o=blah.com" 
password="password" 
            

 <cfreturn GetIDS>

</cffunction> 


I'm calling the function this way: 

        <cfinvoke 
         component="Data"
         method="listusers"
         returnvariable="user"> 
                <cfinvokeargument name="userID" value="#SESSION.userID#"/>
                <cfinvokeargument name="info" value="#session.info#"/>
        </cfinvoke> 


<cfdump var="#user#">

But cfdump only returns column names from ldap not the variables I was 
attempting to reset them to. 







>I'm confused.  You're returning the LDAP query itself (via <cfreturn getIDS>).
>
>where do those single variables (givenname, sn, mail, etc) that you're
>explicitly setting come into play?
>
>On 5/15/07, John P <[EMAIL PROTECTED]> wrote:
>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion?sdid=RVJW

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278177
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to