> I'm in the midst of writing a component that takes as input 
> a unc path i.e. \\\servername.domain\\dirthis\\dirthat
> 
> and produces a list of files and directories based on the 
> credentials *of the user calling the page* (this will be 
> used in our intranet w/ Windows authentication).  
>
> ...
> 
> I don't see anything native to CF that'll allow me to do this 
> ... please correct me if I'm wrong. 

CF 5 allowed this using the CFIMPERSONATE tag; CFMX doesn't have any such
functionality.

> 1. Can this be done by importanting the java.io.file / 
> oranyotherobject? Does this object allow for impersonation, 
> or perhaps passing an authorized user token?

No, I don't think that'll be easily accomplished. The problem is that Java
doesn't know anything about your Windows authentication, to the best of my
knowledge.

> 2. If no CF, or Java, is .net my next best option?

This kind of thing is easily accomplished in ASP, actually, so I assume it
would also be easy in ASP.NET. Working with Windows authentication and
Windows interfaces is generally much, much easier using ASP or ASP.NET.

You could conceivably write a COM or .NET component that did the
impersonation, but you wouldn't have an easy way to pass the authentication
token from CFMX to it. I'm sorry I don't have a better answer, but that's
all I've found myself so far.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to