Access rights for a web application to read a text file on a different server

  • Thread starter Thread starter jannordgreen
  • Start date Start date
J

jannordgreen

I use windows 2000 and Visual Studio 2003.

I have a vbnet web application on our intranet that needs to read a
text file that sits on a different server. The general user does not
have access to the server where the text file is sitting. Is there any
way my web application can be given access rights to read the text
file?

At the moment we copy the text file to the web server where it can be
read by the web application. We have it scheduled to be copied every
hour so it is more or less up to date.

Regards,

Jan Nordgreen
 
Does the other server have the ability to create an account in active
directory? If so, have them do so, and then authenticate using wmi and read
your file.

This will allow you I/O abilities on the host server so you can read the
file into a stream back to the host web app.

You also have the option of using a web service.
 
Jan,

Assuming that the server is in the same domain, You mean that the "ASPNET"
user (the same as from the webserver, normal the domain one), should have to
be given read rights to the file?

In my opinion is that possible yes.

Cor
 
Jan,

Assuming that your website is aspnet. Otherwise the IISuser (I am not sure
anymore from that name)

Cor
 
On 1 May 2006 08:20:13 -0700, (e-mail address removed) wrote:

¤ I use windows 2000 and Visual Studio 2003.
¤
¤ I have a vbnet web application on our intranet that needs to read a
¤ text file that sits on a different server. The general user does not
¤ have access to the server where the text file is sitting. Is there any
¤ way my web application can be given access rights to read the text
¤ file?
¤
¤ At the moment we copy the text file to the web server where it can be
¤ read by the web application. We have it scheduled to be copied every
¤ hour so it is more or less up to date.

Keep in mind that all of the above suggestions require the ability to delegate credentials to the
remote server. The configuration will depend largely upon what type of authentication your web
application is using (Anonymous, Basic, Integrated NT, etc.), so you may want to identity what that
is.


Paul
~~~~
Microsoft MVP (Visual Basic)
 
Back
Top