Impersonation is a process whereby an application assumes another identity or security context during execution.
Questions tagged [impersonation]
1522 questions
0
votes
2 answers
IIS impersonation returns app pool user
I am writing an application allowing users to manage groups in Active Directory. I want to use the identity of the currently logged in user so that they do not have to log into the application. The application works without issue remotely but after…

Phillip Copley
- 4,238
- 4
- 21
- 38
0
votes
1 answer
Run powershell as logged windows user in ASP.net intranet
I'm creating MVC intranet application in ASP.NET C# with Windows authentification , and I need run an external powershell script with users credential.
I add in my web.config file.

Alban
- 3,105
- 5
- 31
- 46
0
votes
1 answer
WNetAddConnection2 in Windows 7 with Impersonation and no Error Code
I'm doing some crazy impersonation stuff to get around UAC dialogs in Windows 7 so the user does not have to interact with the UI (I have the admin creds of course).
I have a process running as the Administrator and elevated past UAC. The issue…

Adam Driscoll
- 9,395
- 9
- 61
- 104
0
votes
3 answers
C# Start Process with logged on user credentials
I am running a winforms application with elevated user rights (emulated Run As as a different domain administrator account), however I want to start a sub process of opening a webbrowser to a URL with the currently logged on user rights as opposed…

Dave
- 1,823
- 2
- 16
- 26
0
votes
1 answer
Linq to SQL Impersonation
I have an ASP.MVC 3.0 application. My solution is containing a Linq to SQL project (.dbml). I0ve made the choice to put it in a different project and not in the web application project. I also have another project which connect "mannually" to the…

LotuX
- 374
- 1
- 11
- 30
0
votes
5 answers
Impersonation and Registry Manipulation in Vista\Win7
I need to create a program that has access to HKLM when running in a non-admin session. I have access to the admin credentials so impersonation seems to be an option.The sequence of Win32 calls…

Adam Driscoll
- 9,395
- 9
- 61
- 104
0
votes
1 answer
How do I use SecureZeroMemory with LogonUser when impersonating a user?
When is it necessary or recommended to add the function SecureZeroMemory?
Neither this MSFT sample for WindowsImpersonationContext, or these Stackoverflow questions link link2 even mention the SecureZeroMemory function.
Should I implement this…

makerofthings7
- 60,103
- 53
- 215
- 448
0
votes
1 answer
Running a classic ASP page as under IIS account when Windows auth is enabled
I've got windows authentication enabled on an ASP page so that I can grab the current user's username. This forces the ASP page to run as that user. I want to lock some files down that are currently being accessed by that page. Is there a way to…

bshacklett
- 1,802
- 5
- 23
- 45
0
votes
1 answer
Can't Impersonate on Windows Service
I am using Impersonation in my program. I don't have any problem. However, when I create Windows Service, I am having an exception while impersonating. What can be the problem? In my account, I can successfully apply impersonation but windows…

cihadakt
- 3,054
- 11
- 37
- 59
0
votes
1 answer
WCF service inaccessible after logging in
I'm having a WCF issue when deploying to our pre-production environment. It is working fine locally.
The AJAX message I'm getting is that there has been a parse error, but I am unable to get any trace logging going on the preprod server, but…

Milambardo
- 330
- 2
- 14
0
votes
0 answers
C# SSIS Package User
I am trying to run an SSIS package from C# which I have working by itself. The problem I am having i that I want to have the user for the package set on the fly. I set up an impersonator class that seems to be working, yet the package is throwing…

Finuve
- 73
- 7
0
votes
1 answer
Impersonation for sp_OA* on SQL Server 2000
Is there any way to impersonate for sp_OA* calls? I'm specifically using this for file system management, and I'm doing everything in TSQL to avoid DTS since there's a possibility of upgrading to 2005 and I want this solution to be cross-version. …

jennykwan
- 2,631
- 1
- 22
- 33
0
votes
2 answers
uploading file to network drive folder
My Server Machine includes:
IIS 7.
Window server 2008.
Network Drive mapped as Z drive which is of Linux machine.
ASP.NET MVC 3 application hosted on server machine.
Problems:
I have built asp.net mvc 3 application that can upload the mulitiple…

CodeManiac
- 974
- 8
- 34
- 56
0
votes
1 answer
Is Impersonation in IIS unsafe?
I'm a newbie. For impersonation in IIS, what do you think about it? I think it's unsafe. How can IIS spawn a Win32 thread to handle user request with user's identity? Does this mean this thread can do anything using user's identity without user's…

moshangcheng
- 259
- 3
- 14
0
votes
1 answer
Is it possible to create a NetworkCredential object from the current HTTP context?
This is related to this question which hasn’t had much success in the context of SharpSVN so I’m rephrasing in a pure .NET security context. I’m wondering if it’s possible to create a NetworkCredential object based on the current logged on user in…

Troy Hunt
- 20,345
- 13
- 96
- 151