473,405 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Impersonating over a domain.

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

May 8 '06 #1
1 1757
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.

"accyboy1981" <ac*********@gmail.com> wrote in message
news:11*********************@y43g2000cwc.googlegro ups.com...
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

May 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Picho | last post by:
Hi all, I am trying to write a secure application and some of you have been very helpful on that subject. the only question remaining open after implementing certain methodologies is this: ...
3
by: Daniel | last post by:
Is it possible to retain local file system read, write, delete access while impersonating for access to a remote drive in a different domain? I need to be able to move files from a local computer...
7
by: Jason | last post by:
I have an ASP.NET application with forms authentication. However, the login details correspond to a Windows account (I cannot use Windows authentication). If I obtain a token with LogonUser, can I...
4
by: hoochiegooch | last post by:
Hi, all. I'm have some difficulty on Win2K3 trying to spawn a devenv.exe process from my ASP.NET app. I've set up an intranet website to allow engineers to launch builds of our product...
2
by: Leonardo Arena | last post by:
We have an Index Server on Win2k Server SP4 indexing about 250.000 docs. We have written an ASP.NET serch page, setup a new virtual directory, and set to use .NET framework 2.0. On the server is...
5
by: fab | last post by:
Hello, i'm trying to browse a UNC share through an ASP.NET application and i've got a problem : i've tried some examples from MSDN or other web sites (using LogonUser from Win32 API) and it...
2
by: kedar | last post by:
Hi, I have a asp.net application, which control virtual directory, we want any user to access and we do not want to use windows authentication(we do not want windows authentication dialog) or...
11
by: JCav | last post by:
I need to call a COM object from a remote machine using C#. I also need to pass on a different userID and password to the call. Has anyone done this? I've used Java to do this using JIntegra, but...
1
by: =?Utf-8?B?c3VidGlsZQ==?= | last post by:
Hi :-) I'm having some trouble with LDAP and Active Directory on Win2k3 I use Windows Authentication and the code System.Threading.Thread.CurrentPrincipal.Identity.Name gives me the correct...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.