Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

File access between machines

Hi!
I'm trying to access (read/write) some files in a remote machine, using a Web Service.

If I call the Web Service Method from a different machine, I get access denied.

If I call the Web Service Method in the same machine where the Web Service is, it works fine.

When I was developing the Web Service, I called the Method and it worked fine too.

I'm using Windows Authentication, Impersonate=true and the machines are in the same domain

Can anyone help me on this?
[525 byte] By [rbicho] at [2007-11-11 10:29:32]
# 1 Re: File access between machines
I think the problem here is that you have one extra hop to the remote machine and impersonated credentials are not being delegated. I would check the below article. You will probably need to establish a trust relationship and enable Kerberos in order for the delegation of credentials to the other system to occur.

Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication (http://msdn2.microsoft.com/en-us/library/aa302390.aspx)
pclement at 2007-11-11 23:11:44 >