Accessing Shared Folders on a computer in another domain using UNC

B

Baron

an asp.net page on Machine A is trying to access files on several machines
of different domains..
any 'good' method to do it without mapping drive in prior.....

i've read something called impersonate; but it use PInvoke, which I don't
like using personally

any good solution?

thanks!!!
 
S

Scott Allen

You could run the ASP.NET application with the identity of a domain
user who is trusted on those other domains. Also, impersonation
doesn't nessecarily require pinvoke, in fact you could impersonate a
user by entering a specific username / password in web.config or in
the registry and get to the networked drives.
 
B

Baron

but the point is
I'll need different accounts when accessing different machines

thanks
baron
 
S

Scott Allen

In that case you may want to look at using delegation. Delegation
allows the client's identity to hop from the web browser to your web
server, and then again from the server to the file share on a third
machine. The third machine will then see the client's identity when a
request is made for the file.

I have some links here:
http://odetocode.com/Blogs/scott/archive/2005/02/24/1053.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top