I have the following query for an LDAP server:
<!---#### Grab the authenticated username and remove the domain & / ####--->
<cfset userName = #GetAuthUser()#>
<cfset adminPass = #application.thepassword#>

<cfldap action="query"
name="getUser"
attributes="cn,sn,dn,title,mail,telephonenumber,alias"
start="dc=acct,dc=upmchs,dc=net"
filter="(&(objectclass=user)(alias=#userName#))"
server="acct.upmchs.net"
sort="cn ASC"
username="1upmc-acct\#userName#"
password="#adminPass#">

<cfdump var="#getUser#" label="#userName#">


But, when I go to output the query, I end up with nothing, I even tried to use 
a cfdump var="getUser", but it just came up empty. Does anyone know why? I'm 
guessing it has to do with it trying to find #userName# in active directory. Is 
there any way this can also be implemented in finding which groups are 
associated with #userName#? 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

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