473,387 Members | 1,483 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,387 software developers and data experts.

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 1474
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.