Impersonating over a domain.

  • Thread starter Thread starter accyboy1981
  • Start date Start date
A

accyboy1981

Hi,

I'm currently in charge of a website on an internal domain. I'm
currently modifying some of the web pages and am wanting one of the
pages to be dynamic and read two files located on seperate pc on a
different internal domain. The code (C#) that I have in place works if
the files are located locally or on the same domain. However when I try
and access these files on the other domain I get an error message
saying that I dont have permission to view the files. I've been trying
to access these files without much success using impersonating, either
passing a username/password or leaving it to the default user that
logged in. The problem is that there is no username/password common to
both these domains. The website currently resides on a Windows 2000
based machine. Also the location of these files are stored in the
web.config file for easy access should the location change. I've also
tried to map the network drives on the server that hosts the website
instead of looking at the ip address for the location without much
success. Any help would be much appreciated.

Thanks in advance

Simon
 
You'll either have to create permissions that apply to one user account on
the domain, or have your app impersonate a different user when using either
of the other 2 machines.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.
 
Back
Top