Impersonation is a process whereby an application assumes another identity or security context during execution.
Questions tagged [impersonation]
1522 questions
0
votes
1 answer
Run PowerShell script from ASP.NET
I have been trying out running a PowerShell script from asp.net with no success for a few days already.
The C# is:
using (var process = new Process())
{
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName =…

user1167132
- 31
- 1
- 3
0
votes
1 answer
& Application_Start event
So - after much research, it appears that the < identity impersonate=true > only works AFTER the Application_Start event fires.
Does anyone know any workaround to this problem? I have an application which needs to create the database when the…

eejai42
- 736
- 2
- 12
- 24
0
votes
1 answer
Impersonate a user on another domain, one way trust
I am attempting to impersonate a user on another domain, for the purpose of querying that domain. See Accessing user info from a one way trust for some background.
My impersonation works correctly when I'm using a local domain user. When I specify…

David Lozzi
- 14,697
- 9
- 28
- 44
0
votes
1 answer
nodejs impersonation with windows
I need to use nodejs to write file to a password protected shared folder on a remote machine running Windows server 2008 r2, how can I do impersonation things within nodejs like .net app does?
Thx in advance!!!
PS:
Sorry for the unclear description.…

iNc0ming
- 383
- 1
- 6
- 17
0
votes
2 answers
Run process.start() in a network
I have written a win application that works on a network.
In one of its forms user can browse and select file from local computer and add it to a list, so the application copies these files to a folder in My Network Places that no users can access…

M_Mogharrabi
- 1,369
- 5
- 29
- 57
0
votes
3 answers
C#: Start process as the "real" administrator with hard coded privileges
I need to install different setups silently with administrator privileges.
I have to hard code the privileges because the users don´t know username and password to install the setups themselfes.
I have tried two different…

timmkrause
- 3,367
- 4
- 32
- 59
0
votes
1 answer
How to access a shared folder as an active directory user
I am running an web application on IIS 6, Windows Server 2003 and it runs under local user IUSR_MachineName.
We have a shared folder, for example \\server\path somewhere on our network and only one active directory user has read/write access to it.…

sventevit
- 4,766
- 10
- 57
- 89
0
votes
1 answer
ASP.NET impersonation works only when a user is specified in the web.config
First, I apologize is this a duplicate, but I really couldn't find a similar problem anywhere.
The situation is I'm attempting to use the impersonation feature in asp.net to retrieve a file located on a network directory. When I specify the user in…

chad
- 717
- 1
- 9
- 23
0
votes
3 answers
Excel Application Not Exiting in Interop
I am using the following piece of code to write into the excel file dynamically on a ASP.net form that can save the data table to excel.
//Create Excel Object
Microsoft.Office.Interop.Excel.Application excel = new…

user1067334
- 243
- 3
- 7
- 15
0
votes
1 answer
ASP.NET: cannot impersonate the caller (2-hop?)
I have an MVC3 webapplication which runs as a DOMAIN\USER1 account. This user has SPN in AD set and is trusted for delegation.
I want this application to access sharepoint server on behalf of the caller and upload the file for her/him. I use the…

Michal B.
- 5,676
- 6
- 42
- 70
0
votes
1 answer
Google Docs: Cannot export/download user's document using administrative access/impersonation (forbidden 403) in C#
I've been banging my head all day about this, did a ton of Google searches but to no avail. I am writing an application that downloads all of a user's Google Docs files to local disk. I have to do this for several users, and am only provided with an…

Isa
- 1
0
votes
3 answers
How to impersonate another domain user as i have the administrator account of this AD domain?
i'm working on a windows software which can display all the users, groups and shared folders info in a domain when you input the domain administrator account. I have some trouble fetching some shared folders info because these folders even did not…

hsluoyz
- 2,739
- 5
- 35
- 59
0
votes
1 answer
copy files from Web Application to Network directory
I am planning to use impersonation in Web Application to copy files to target network shared location. I want to copy many files to many Network locations and traffic is high in peak hours. I could batch copy many files to many network locations at…

BigBoss
- 413
- 8
- 23
0
votes
1 answer
Accessing Impersonated users key store
I am impersonating a service user account in order to connect to a webservice that requires a cert to connect. I have installed the client cert on the service account on the machine which is running the code however I receive the error…

Bitfiddler
- 3,942
- 7
- 36
- 51
0
votes
3 answers
Calling WindowsIdentity.Impersonate does nothing
I'm using the following Microsoft example. Every time the WindowsIdentity instance calls .Impersonate(), nothing happens. No error, no impersonation.
Both before and after the call, the current identity is always the AppPool identity.
I've also…

eych
- 1,262
- 2
- 16
- 37