Impersonation is a process whereby an application assumes another identity or security context during execution.
Questions tagged [impersonation]
1522 questions
3
votes
0 answers
Automate PowerShell from C# under a different user
I am trying to launch a local instance of PowerShell from C# under different user credentials - and then continue to invoke commands from C#. Is this possible?
If I launch PowerShell directly (not using runspaces) like so:
PowerShell ps =…

Mike Oliver
- 395
- 1
- 3
- 12
3
votes
2 answers
Is it possible to have a CLR function in SQL take on a specific windows identity?
I want to have a CLR function run as a specific windows identity when called from SQL Server Agent Jobs. To that end, the SQL statement calling the function has the form:
execute as user='domain\username'
select…

Dan Scally
- 1,922
- 1
- 19
- 31
3
votes
1 answer
User impersonation through HTTP header
I need to implement user impersonation through a HTTP header. For example, a user will send a request to /api/something with the header impersonate=someUser.
I tried to following process:
User gets authenticated by one of multiple authentication…

Aaron
- 826
- 10
- 22
3
votes
1 answer
IIS Impersonation not working when app pool runs with domain account
I have an ASP.net application running in an windows intranet environment. I have a requirement to perform certain database updates as the currently logged in user.
IIS/server info:
IIS version 10
Windows server 2019
ASP.net web forms…

Joe LaRue
- 132
- 1
- 5
3
votes
1 answer
Is it possible to do user impersonation in laravel using API Tokens?
This plugin works fine https://github.com/404labfr/laravel-impersonate but I am developing a web application that performs a RESTful API. APIs typically use tokens to authenticate users and do not maintain session state between requests.
And…

J.I.S
- 41
- 4
3
votes
2 answers
.net impersonate not passing proper credentials to SQL Server
I currently have a .net console application that needs to receive an active domain account via the appConfig file to connect to the database. The application is being executed from the TaskScheduler. I cannot use the domain account to execute the…

orlando15767
- 145
- 1
- 2
- 15
3
votes
2 answers
TFS - Is it possible to impersonate someone to check-in changes?
I'm responsible for merging and commiting changes to the test Branch, but by doing that every check-in is marked as me as the author. So until now i'm writting the author name in the comments. But it's ugly.
Is it possible to impersonate someone…

Conrad Clark
- 4,533
- 5
- 45
- 70
3
votes
1 answer
Multilevel usage of thread impersonation
I'm having some issues with some long-ago written classes that do thread-level impersonation and process spawning. The problem seems to be that my usage of these utility classes is above and beyond what anyone else has tried to do with them.
The…

phyllis diller
- 795
- 2
- 9
- 21
3
votes
2 answers
Access a shared folder(which is protected)
I need help in writing a C# script which can access a secured shared location(i hv the username and password) in order to access some files from that location and also dump some files over there pragmatically.
Thank you in advance

S..
- 1,242
- 8
- 29
- 49
3
votes
1 answer
ASP double hop request in kerberos delegation scenario
Please help!
I need my asp application to request remote systems with credentials of impersonated user. But always get 401 Unauthorized errors.
I made all configurations from here:…

Gunman7840
- 129
- 1
- 7
3
votes
2 answers
How to get Alfresco login ticket without user password, but with impersonating user with user principal name (UPN)
I'm writing a DLL that has function for getting Alfresco login ticket without using user password, using only a user principal name (UPN). I’m calling alfresco REST API service /wcservice. I use NTLM in Alfresco.
I’m impersonating users using…

dok
- 317
- 3
- 8
3
votes
2 answers
IdentityServer: Impersonation at Client Level
I need te be able to impersonate a User at the app/client level.
The use case is as follow:
User decides to publically share a dashboard (contains very frequently refreshed data, custom organisation, ...)
User sends a link to someone else (that…

Georges Legros
- 2,494
- 2
- 23
- 42
3
votes
2 answers
what user account does my IIS hosted wcf service run under?
What user account does my .Net WCF service run under when I am hosting it in IIS 7?
Is it the IUSR_machine account?
What is the easiest way for me to run under a different account? (Just for this service, I don't want other things hosted in my IIS…
yankman
3
votes
2 answers
Impersonate local user on another machine
I need to log on my controller to another machine and copy a file on it; I have to use a local user on the remote machine.
Currently I'm using this code:
private Impersonate(bool active, string domain, string username, string password, LogonType…

Irvin Dominin
- 30,819
- 9
- 77
- 111
3
votes
2 answers
WCF Impersonation Level Error on System.Data.OracleClient
I currently have a WCF service running in IIS7 and I have have added impersonation on each of the public web methods with the following:
[OperationBehavior(Impersonation = ImpersonationOption.Required)]
public void TestMethod(){}
When ever I call…

arc1880
- 519
- 2
- 9
- 21