I am not sure I understand the following error.

The USERNAME parameter to the getUser function is required but was not 
passed in.
 
The error occurred in D:\playground\ian\security.cfm: line 4

2 :     <cfparam name="form.un" default="#listLast(cgi.auth_user,'\')#">
3 :    
4 :     <cfinvoke component="common_cfc.ldap_security.ldap" 
method="getUser" username="#form.un#" returnvariable="userObj"/>

Are the following two forms of the <cfinvoke...> tag equivalent?

<cfinvoke component="common_cfc.ldap_security.ldap" method="getUser" 
USERNAME="#form.un#" returnvariable="userObj"/>

AND

<cfinvoke component="common_cfc.ldap_security.ldap" method="getUser" 
returnvariable="userObj">
  <cfinvokeargument name="username" value="#form.un#">
</cfinvoke>

If they are supposed to be the same, why would I get the above error for 
the first form, while the second form works correctly.  If they are not 
the same, when can one put parameters into the <cfinvoke...> tag.  I am 
almost positive I have done so in the past.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302448
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