473,473 Members | 1,475 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Impersonation problems

Hi to all.
I have two Impersonation problems:

1. When using my app. from a remote computer,
the aspx page is unable to get information from Active Directory.
I am using Impersonation, and the Impersonated user is logged to the domain.
When I'm doing the same, logged as the same user, but on the server
computer,
it works.

2. When using Impersonation and setting the user name and password in the
web.config
file, the aspx page is able to access files on a file server.
But when user name and password are not in the web.config file,
and I am logged in as the same user, access is denied.

What am i missing here?
Thanks.
Sharon.

Nov 19 '05 #1
2 1475
see >>

-- bruce (sqlwork.com)
"Sharon" <sh****@void.null> wrote in message
news:eB**************@TK2MSFTNGP15.phx.gbl...
| Hi to all.
| I have two Impersonation problems:
|
| 1. When using my app. from a remote computer,
| the aspx page is unable to get information from Active Directory.
| I am using Impersonation, and the Impersonated user is logged to the
domain.
| When I'm doing the same, logged as the same user, but on the server
| computer,
| it works.
|
unless you are using basic or kerboros, impersonated accounts cannot access network resources (1 hop rule). if you are on the iis box, it has a
primary token, and can do 1 hop. if you access from another box, you used up
1 hop getting to iis.

| 2. When using Impersonation and setting the user name and password in the
| web.config
| file, the aspx page is able to access files on a file server.
| But when user name and password are not in the web.config file,
| and I am logged in as the same user, access is denied.
|
same rules as above. if you fill in a domain username and password,

asp.net can access remote resources

| What am i missing here?
| Thanks.
| Sharon.
|
|
|
Nov 19 '05 #2
Thanks Bruce.
I thought the problems are related.
So i need to forward the impersonated account to the file server / active
directory.
Do you know how it's done?
Sharon.

"bruce barker" <no***********@safeco.com> wrote in message
news:#k**************@TK2MSFTNGP10.phx.gbl...
see >>

-- bruce (sqlwork.com)
"Sharon" <sh****@void.null> wrote in message
news:eB**************@TK2MSFTNGP15.phx.gbl...
| Hi to all.
| I have two Impersonation problems:
|
| 1. When using my app. from a remote computer,
| the aspx page is unable to get information from Active Directory.
| I am using Impersonation, and the Impersonated user is logged to the
domain.
| When I'm doing the same, logged as the same user, but on the server
| computer,
| it works.
|
unless you are using basic or kerboros, impersonated accounts cannot access network resources (1 hop rule). if you are on the iis box, it has a
primary token, and can do 1 hop. if you access from another box, you used up 1 hop getting to iis.

| 2. When using Impersonation and setting the user name and password in the | web.config
| file, the aspx page is able to access files on a file server.
| But when user name and password are not in the web.config file,
| and I am logged in as the same user, access is denied.
|
same rules as above. if you fill in a domain username and password,

asp.net can access remote resources

| What am i missing here?
| Thanks.
| Sharon.
|
|
|

Nov 19 '05 #3

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

Similar topics

5
by: hellrazor | last post by:
HI there, I am developing a client side app which requires me to launch another program when a user clicks a button on a web page. I thought I'd create an asp.net page (using c# ) to accomplish...
0
by: Peter Afonin | last post by:
Hello: When I try to access a SQL server or a network share from an ASP.Net application that I run on my computer, I run into security problems (for instance, I cannot execute DTS package using...
6
by: Chris | last post by:
I have the following debugging system: - WinXP Pro - IIS 5.1 with Anonymous Access disabled and Windows Auth enabled - Both my computer and the user I am logged on as are members of the AD and...
26
by: andrew_webby at hotmail | last post by:
Hi Am having a problem with an app I wrote to test patch delivery. I contact a remote PC, and get it to run a patch which is installed on a server. It works fine if I use psexec for example and...
1
by: Jarred | last post by:
Howdy All, I've been having a bit of a problem that I can't seem to get a grip on at the moment and I'm hoping someone may be able to give me a quick hand :) What I have is a Webservice that...
27
by: vipleo | last post by:
I am having some issues, when I try to launch another process using Process.Start(ProcessStartInfo psi) on win xp sp2 box (Other versions of xp have no issue). Here is the detail. Main app...
1
by: Matthias Wohlmann | last post by:
Hi, I've got an ASP.NET Web-Application written in C#. In IIS 6.0 (Windows Server 2003) I have set the application to allow anonymous access, but instead of the default user I use an own...
0
by: Daniel Knöpfel | last post by:
Hello On our asp.net 2.0 website we impersonate every request to the identity of the user logged in. This works this way: 1. user logs in, providing username, password 2. user is authenticated...
0
by: ChopStickr | last post by:
I have a custom control that is embedded (using the object tag) in an html document. The control takes a path to a local client ini file. Reads the file. Executes the program specified in...
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...
1
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.