Impersonation is a process whereby an application assumes another identity or security context during execution.
Questions tagged [impersonation]
1522 questions
4
votes
1 answer
Debug while Impersonating Another Domain Account
Is it possible to debug a C# .NET 4 application, run unit tests, etc., using domain user credentials other than my own? I have several elevated permissions that the users and/or service accounts will not posses, and want to avoid skewing my tests…

Mike Christian
- 1,526
- 1
- 15
- 27
4
votes
2 answers
What allows a Windows authentication username to work (flow) between 2 servers?
Typical ISP setup. One server is the web server, another is the DB SQL server. There is a local administrator account, let's say XYZ, created on both machines. So when I log in remotely, I am either WebServer\XYZ or DBServer\XYZ, depending where…

Robert4Real
- 1,332
- 5
- 21
- 39
4
votes
2 answers
"Unknown error (0x80005000)" trying to read remote IIS 6 Metabase with DirectoryEntry and Impersonation (C#)
(EDIT) The plot thickens: The same code (with no need for impersonation!) runs successfully from a Windows 7 client, but NOT from a Windows 2008 R2 client! Here's the code in question. (Original message follows code below.)
var entry = new…

JCCyC
- 16,140
- 11
- 48
- 75
4
votes
1 answer
Write files to network drive from IIS using Managed Service Account
I have an ASP.NET MVC 5 app hosted in IIS 10 on Windows 2016. Our sys admins have created a Managed Service Account (MSA) that is tied to this server and has read/write permissions to a folder on the network. I need to write PDFs to that folder from…

Alex
- 34,699
- 13
- 75
- 158
4
votes
0 answers
How to impersonate the user in Jira add-on to use Jira REST API on behalf of user
I'm looking for help of somebody who knows something about Jira add-ons.
I'm trying to implement Jira add-on with an ability to create issues on behalf of a user.
So, I completed all steps (as I think) leading me to my goal, but I faced a problem…

Vitalii Kobrin
- 41
- 4
4
votes
4 answers
Impersonation in .Net crashes when reading registry keys (LinkLabel SecurityException)
My app needs to impersonate a service account, which I do through a native-call to LogonUser. However, it appears that random components in the .Net library try to access registry keys the account doesn't have access to, causing a SecurityException…

BlueRaja - Danny Pflughoeft
- 84,206
- 33
- 197
- 283
4
votes
1 answer
Problems with Impersonated Service and Network Locations
I have a windows service that polls a user selected directory for new files.When a Network location is selected (a folder on a remote machine on the same network),i query the user for the username and password of the remote machine (user who has…

techno
- 6,100
- 16
- 86
- 192
4
votes
3 answers
Impersonation and Delegation in ASP.NET
I'm having problems accessing a text file on a remote server with ASP.NET. The ASP.NET 1.1 application is running on Server 2003 using Impersonation with the requester's Windows Credentials. The client, webserver, and remote server are all on the…

Lance Fisher
- 25,684
- 22
- 96
- 122
4
votes
3 answers
What is the difference: LoadUserProfile -vs- RegOpenCurrentUser
These two APIs are very similar but it is unclear what the differences are and when each should be used (Except that LoadUserProfile is specified for use with CreateProcessAsUser which I am not using. I am simply impersonating for hive…
Will5801
4
votes
2 answers
How to check if a windows user has access (Windows Integrated Security authentication) to SQL Server Analysis Services (SSAS) Server via impersonation
For a SQL Server instance, to check if a windows user is present and has any access or not one can try various ways as detailed here.
I'm looking for something similar for SQL Server Analysis Services (SSAS) server.
I went into properties of SSAS…

RBT
- 24,161
- 21
- 159
- 240
4
votes
1 answer
Run program as different user on Windows (not admin) within a Python script
With the following code:
class ImpersonateWin32Sec(object):
def __init__(self, domain, username, password):
self.username = username
self.password = password
self.domain = domain
self.handle = None
def…

Martin Bammer
- 537
- 7
- 19
4
votes
1 answer
CreateMutex fails after impersonation
Here's the code where I'me trying to impersonate a user and then create a mutex. The mutex is not getting created. I get ERROR_ACCESS_DENIED error.
void Impersonate()
{
DWORD logonType = LOGON32_LOGON_INTERACTIVE;
DWORD logonProvider =…

Vladimir Navrotsky
- 43
- 4
4
votes
2 answers
selenium web driver running as different user not getting profile/session of user
I have a strange situation where I have modified the selenium web driver code slightly to allow the driver service to be launched under a different user, changes to the code from github are:
public void Start()
{
…

MikeW
- 1,568
- 2
- 19
- 39
4
votes
2 answers
What is the cause of this OutOfMemoryException on Mutex constructor?
I am getting an System.OutOfMemoryException on this line of code:
mutex2 = new Mutex(true, "Name2");
Here is the stacktrace:
{"Exception of type 'System.OutOfMemoryException' was thrown."}
at…

ReinierDG
- 875
- 7
- 21
4
votes
1 answer
External program execution impersonation mode
We've got an legacy CRM system (Server), that uses a mapped network drive. The problem is drive is fully opened for modification by any users.
I'm trying to use user impersonation, in c# .net console application (Client A).
Client A execute an .exe…

Kingxlayer
- 119
- 5