Questions tagged [impersonation]

Impersonation is a process whereby an application assumes another identity or security context during execution.

1522 questions
2
votes
2 answers

Does Impersonation work in ASP.NET MVC

I am having issues with Impersonation in an ASP.NET MVC application, and just want to check if there are any known issues. Thanks.
Olivieri
  • 370
  • 3
  • 9
2
votes
1 answer

How can I impersonate a different user while opening a virtual directory?

We have an ASP.NET (3.5) application which uses Forms Authentication to authenticate accounts. On the logon form, I also get a windows login token using LogonUser, which I use to impersonate the logged on user for browsing private directories (the…
pschorf
  • 519
  • 1
  • 10
  • 23
2
votes
2 answers

Error with windows impersonation code in webconfig file

I have the following section declared in the webconfig file to allow impersonation , I have shared the folder to public access within the network on the other machine
mahesh
  • 3,067
  • 16
  • 69
  • 127
2
votes
2 answers

BAD IMPERSONATION in IIS Express with Basic Auth for all static requests

We are attempting to use Basic Authentication in a project, which generally works fine in our integration and QA environment or even running locally with IIS 7.5. But running locally in IIS Express we get some very strange issues -- any static…
Wyatt Barnett
  • 15,573
  • 3
  • 34
  • 53
2
votes
5 answers

Windows service writing files to network share

I have a windows service running which moves files from a watched folder (IO.FileSystemWacher) to a UNC share on a network. The network share is secured, but the share has full control for the Service user; despite this I get problems with the file…
Hooloovoo
  • 2,181
  • 3
  • 16
  • 21
2
votes
2 answers

Impersonation and Delegation within a MVC 3 application on IIS 7.5

Given the follow scenario: Windows 2008 R2 x64 web server with IIS 7.5, Server 1 Windows 2003 R2 x64 file server, Server 2 MVC 3 application with Windows authentication and impersonation (authenticated user) Configured Server 1 as 'Trusted…
Andrew
  • 5,395
  • 1
  • 27
  • 47
2
votes
3 answers

ASP.Net Directory Security

I have a directory on the root of my website which contains some files(usually html). These files should be accessed only for the logged-in user. How can I achieve this? I believe this could be done using impersonation but I don't have any idea …
NaveenBhat
  • 3,248
  • 4
  • 35
  • 48
2
votes
1 answer

ASP.NET Membership - Which user is authenticated and which user is impersonated?

i'm a little confused while trying to find out how ActiveDirectory and ASP.NET Membership work... I've created a new MVC project and removed the AccountController / Views. I've changed the Web.Config so that it uses ActiveDirectory and automatically…
2
votes
1 answer

Impersonating domain user in WPF - UnauthorizedAccess

I am trying to impersonate a domain user account in a WPF application so the application can write to a folder on the network. The domain user has sufficient rights to write to this location. I'm using some code found on the net to perform the…
Harm
2
votes
2 answers

System.Diagnostics.Process impersonating other user

I have the following code which is working. My callback method is called with the program's output as it is generated. var proc = new System.Diagnostics.Process(); //proc.StartInfo.Domain = DOMAIN; //proc.StartInfo.UserName =…
RationalGeek
  • 9,425
  • 11
  • 62
  • 90
2
votes
1 answer

ASP.NET Impersonation make windows Identity flow across to SQL Server

I have a website with Impersonation turned on. IIS Windows Authentication is on and Anonymous Access is OFF. SQL Server security has a Domain\TestUser account added I logged on with Domain\TestUser. Browsing a test page shows that HttpContext is set…
2
votes
1 answer

asp.net impersonate from server in domain to server outside domain

Im using this code http://platinumdogs.wordpress.com/2008/10/30/net-c-impersonation-with-network-credentials/#comment-770 to connect from a machine in the domain to a machine outside the domain. The web-application I wrote connects from a webserver…
Patrick
  • 2,730
  • 4
  • 33
  • 55
2
votes
1 answer

Impersonation not working on HTTP Handler on IIS7

I have an http handler that saves files on a remote location. For doing this I need specific permissions and the entire application is configured to work with impersonation (web.config setting) This works perfect for all the pages (some other pages…
StackOverflower
  • 5,463
  • 13
  • 58
  • 89
2
votes
0 answers

Access Denied for Process.Start() when

My head is flat from banging my head with this issue. I have set for AD things but when I re-run the app, I get "Accesss Denied" error when Process.Start() is trying to run a command. So I put:
James
  • 579
  • 10
  • 26
2
votes
1 answer

PsExec hangs without output when not using -d or -i

I'm starting PsExec inside a WCF web service to execute a remote command and capture it's output. It's being run while impersonating a certain user. When trying to run a non-GUI command (like ping, tracert..), PsExec just hangs unless I use -d or…
David
  • 3,736
  • 8
  • 33
  • 52