Impersonation is a process whereby an application assumes another identity or security context during execution.
Questions tagged [impersonation]
1522 questions
3
votes
2 answers
Redmon's Run As User not loading user's environment variables
I'm attempting to use Redmon http://www.winimage.com/misc/redmon/ to send print jobs to a custom C# application. Redmon "runs" (actually the Print Spooler) as SYSTEM but has an option to Run As User to allow your application to run under the user…

Halfdone
- 123
- 10
3
votes
1 answer
How do I make sure that my windows impersonation level is valid?
I am dealing with a nasty issue that has me ready to tear my hair out. I have a C# console application that uses Microsoft's HttpListener class to listen for web requests. The idea is that the console application runs in the background as…

John Doh
- 249
- 6
- 15
3
votes
1 answer
SQL Server Execute As Requires Individual Logins
Evening,
I would like some practical confirmation in relation to an issue we are having.
We have a K2/SourceCode solution that turns upon the successful use of EXECUTE AS with Sql Server 2008 R2.
We have no direct control over how this solution is…

user3561406
- 53
- 8
3
votes
2 answers
Impersonate user programmatically on Sharepoint 2013 (C#)
This might an odd question, but what I would like to achieve is a functionality that would allow specific users to view SharePoint pages as if they were logged in as different users.
Let's say we have a Student page and a Staff page. I am not a…

Naner
- 1,292
- 6
- 25
- 43
3
votes
1 answer
Is impersonation in Win32 per thread?
Is calling ImpersonateSecurityContext on the server impersonating the client on the calling thread or for the entire process. The documentation is a bit vague on the matter as it states that "The function creates an impersonation token and allows…

dalle
- 18,057
- 5
- 57
- 81
3
votes
1 answer
what is impersonate in asp.net web.config?
Please guide me. if i gave anonymous access to site in iis and if i gave impersonate = true in its web.config then what should happen?

Red Swan
- 15,157
- 43
- 156
- 238
3
votes
0 answers
CryptAcquireContext failing with ERROR_FILE_NOT_FOUND (2L) when user not logged on Windows 8.1
I am having a hard time migrating a C++ CryptoAPI-based application that currently runs on Windows Server 2008 to Windows 8.1. The scenario is:
This application is eventually triggered by WatchDog.exe, which in its turn is triggered when the…

Dan
- 51
- 4
3
votes
1 answer
asp.net Impersonate User for network resource access
code:
System.Security.Principal.WindowsImpersonationContext impersonationContext;
impersonationContext =
((System.Security.Principal.WindowsIdentity)User.Identity).Impersonate();
//access network…

coderguy123
- 1,955
- 1
- 15
- 15
3
votes
2 answers
.NET Impersonate and file upload issues
I have a webpage that allows a user to upload a file to a network share. When I run the webpage locally (within VS 2008) and try to upload the file, it works! However, when I deploy the website to the webserver and try to upload the file through the…

Jagd
- 7,169
- 22
- 74
- 107
3
votes
1 answer
TPL and Impersonation
I am using the Impersonator class (see http://www.codeproject.com/KB/cs/zetaimpersonator.aspx) to switch the user context at runtime.
At the same time, i am now restructuring my program from a single threaded design to multi-threaded one (using TPL…

Udontknow
- 1,472
- 12
- 32
3
votes
1 answer
Temporarily granting elevated administrator privileges to ASP.NET code
We're trying to run a set of administrative tasks on the server via a web administration console. The console runs with impersonation as the currently logged-in user, and only administrators on the local machine are allowed to log in. Right now it…

Steve Eisner
- 2,005
- 23
- 35
3
votes
5 answers
Need to Impersonate user forAccessing Network resource, Asp.Net Account
I need to access a network resource on which only a given Domain Account has access.
I am using the LogonUser call, but get a "User does not have required priviliege" exception, as the web application is running with the asp.net account and it does…

SharePoint Newbie
- 5,974
- 12
- 62
- 103
3
votes
0 answers
Elevate privileges programmatically on mono
From my mono application, running under Linux, I want to run another one as root user. At the moment I use Process.Start, running gksudo.
This solution works quite well under one condition - there is gksudo installed.
I need a mechanism to elevate…

Piotr Zierhoffer
- 5,005
- 1
- 38
- 59
3
votes
1 answer
Persisting windows authentication permission tokens, that allow later impersonation
Think about a service like IfThisThenThat (IFTTT.com). In there, I authenticate against services (twitter, evernote, gmail, dropbox etc) and authorize IFTTT to act on my behalf (presumably by storing a token of some sort). I can revoke the token any…

Kjensen
- 12,447
- 36
- 109
- 171
3
votes
1 answer
Accessing mapped drive using OpenFileDialog when impersonating
The user needs to login with his windows credentials at startup of our application. These credentials are used to impersonate the user and run the main form under the provided login. We do now have an OpenFileDialog where the user can select…

Scoregraphic
- 7,110
- 4
- 42
- 64