impersonation Questions
4
I'm trying to do impersonation in a .NET Core 2.1 Web-API. So this Web-API calls another Web-API using HttpClient and I need the user that called the first one to also be the one who is executing t...
Devoice asked 31/7, 2018 at 5:37
1
Solved
So, I found gems like pretender, user_impersonate2 and switch_user. They all seem to accomplish the similar goal - switching current_user for systems like Devise, for "monolith" Rails apps.
I have...
Solvable asked 6/8, 2019 at 12:20
10
Solved
I have a web application (hosted in IIS) that talks to a Windows service. The Windows service is using the ASP.Net MVC Web API (self-hosted), and so can be communicated with over http using JSON. T...
Lord asked 31/8, 2012 at 9:2
5
Solved
In an application built with Symfony2 we want superadmins to be able to impersonate other users. This is easily done by giving the superadmin user the ROLE_ALLOWED_TO_SWITCH role. The switching is ...
Guan asked 16/6, 2011 at 12:22
8
Solved
I have a Django app. When logged in as an admin user, I want to be able to pass a secret parameter in the URL and have the whole site behave as if I were another user.
Let's say I have the URL /my...
Conversion asked 11/2, 2010 at 7:35
3
Solved
I am impersonating a user account successfully, but I am not able to use the impersonated account to bind to AD and pull down a DirectoryEntry.
The below code outputs:
Before impersonation I am...
Bandwagon asked 22/1, 2012 at 0:10
3
We are calling System.IO.Packaging.Package.Open() in an ASP.NET application. Further, a Windows impersonation has been performed before calling this because the package to be opened is stored in a ...
Pashto asked 11/9, 2014 at 17:42
0
When user tries to access the controller method from web application, the below code will be executed to create a process as impersonated/logged on user. Below code executed without any issues. New...
Dimeter asked 26/7, 2022 at 11:32
3
Solved
I want to start a Process with Admin rights. When I run the code below the Process complains saying it needs Admin rights:
public class ImpersonationHelper : IDisposable
{
IntPtr m_tokenHandle = ...
Cyclops asked 7/1, 2011 at 9:32
1
Solved
This is a variation of a question that has been asked and answered before.
The variation lies in using UserName and Password to set up the System.Diagnostics.ProcessStartInfo object. In this case, ...
Sauceda asked 19/3, 2022 at 9:48
7
ASP.NET: Impersonate against a domain on VMWare
This question is what I am asking, but the answer does not provide details on how the _token is derived. It seems to only use WindowsIdentity.GetCur...
Aberdare asked 16/2, 2011 at 23:48
2
Solved
Based on the MSDN documentation of File.Exists, the File.Exists method should return false on any error, including the caller not having access to read the file.
I would expect it to return false...
Odelsting asked 20/1, 2016 at 1:32
3
Solved
Today we deployed our newly created ASP.NET application to the server and soon we realized there was a strange security-related issue which was causing the application to crash. This is an internal...
Potted asked 26/9, 2014 at 17:29
1
Solved
I have 2 ServiceAccounts in my Google Cloud Platform (GCP) Project
owner
executor
The owner ServiceAccount has 1 project-wide role attached to it:
"Owner" - for the project
The execut...
Hailee asked 21/12, 2020 at 13:50
2
Solved
On our website, administrators should be able to view the website as the user (client). I planned on using Auth0 for this, and just noticed their impersonation feature is deprecated.
I could force...
Propolis asked 5/10, 2018 at 17:30
2
Solved
I'm having some issues with a WCF service and Impersonation, I've distilled this to a simple method below. The WCF service is currently self hosted in an exe. The exception message is "Either a req...
Semipalatinsk asked 4/9, 2012 at 10:41
2
Solved
I would like to allow users to impersonate a service account to do operations on a long running process.
However, all the code examples illustrate a service account impersonating another service a...
Espagnole asked 5/3, 2020 at 22:14
3
I have a requirement of allowing our internal support users to impersonate our customer users.
I'm currently using IdentityServer4, Implicit Flow and OIDC Client.
Resources found so far.
[Quest...
Langmuir asked 7/8, 2017 at 14:50
2
Solved
I'm trying to debug as NT AUTHORITY\SYSTEM. I've tried to use the methods described in the following question:
RunAs A different user when debugging in Visual Studio
Yet, what credentials do I ne...
Privacy asked 30/1, 2014 at 19:44
2
Solved
With .NET web apps, I am able to impersonate a Windows user easily enough using this class:
/// <summary>
/// TOOLS IMPERSONATION
/// </summary>
namespace Tools
{
#region Using direct...
Hybridism asked 2/11, 2017 at 20:31
5
I am trying to use impersonation in a an asp.net 3.5 webservice. However whenever I try to run the service with Impersonation enabled (In web.config) I am receiving the following error in my Window...
Bermudez asked 3/2, 2011 at 17:13
2
I need to download files from a server to a shared drive directory, creating the directory if it doesn't exist. There are a few things making this more complicated:
I do not have write access (no...
Sleuth asked 2/10, 2019 at 18:48
2
I'm having problems trying to impersonate an active directory user in a desktop application. Every time I use the LogOn API the result is false.
The user and domain do exist since I can also auth...
Jacoby asked 4/6, 2019 at 17:39
3
Trying to start process with another access token, without success, it runs as the non-impersonated user.
using (WindowsIdentity identity = new WindowsIdentity(token))
using (identity.Impersonate(...
Scorbutic asked 14/10, 2010 at 18:43
3
Solved
In my journey to master the nuances of user impersonation in Windows I first had an issue about getting impersonation to a remote database to occur at all (see this SO question) but I finally figur...
Ollayos asked 12/8, 2013 at 23:26
1 Next >
© 2022 - 2024 — McMap. All rights reserved.