Impersonation is a process whereby an application assumes another identity or security context during execution.
Questions tagged [impersonation]
1522 questions
0
votes
1 answer
how can I get a facebook Page access token from a users access token using php?
I am trying to get a page access token starting out with just a users access token stored in my database and a page id. So far I have not been using the facebook.php instead just using php's curl_* functions. So far I can send posts to the page…

lost baby
- 3,178
- 4
- 32
- 53
0
votes
0 answers
Access to the shared folder with ASP.NET
I have a ASP.NET application, I want access to a share folder, that is located on another server, I explain the situation:
Server A: OS:Windows server 2008; WEB SERVER:IIS7; ASP.NET FRAMEWORK 2.0
Server B: OS:Linux; FOLDER SHARE(service user,…

invictus1306
- 587
- 1
- 4
- 19
0
votes
0 answers
Access HKCU for impersonated user: P/Invoke "RegOpenCurrentUser" returns empty handle in Windows XP
I have a problem to access the HKEY_CURRENT_USER registry key for an impersonated user.
After some research, I'm currently using Win32 Api RegOpenCurrentUser.
Since there's no documentation in P/Invoke website, I've retrieved this signature from…

Spaceman
- 547
- 8
- 25
0
votes
1 answer
Process.Start() throws "Access Denied" after Impersonation
I'm having a problem executing a file from a file server using Process.Start() + Impersonation. Please help me to solve my problem. Is there another way to do this?
This is the button click event.
private void btnOpen_Click(object sender, EventArgs…

Ain Ronquillo
- 197
- 1
- 3
- 6
0
votes
2 answers
How to access Exchange calendar from asp application
I have been tasked with writing a .NET application that has to have access to a users exchange calendar. This application will only be accessed from the local network and I need to have to automatically use the current domain users credentials to…

Joe Smith
- 101
- 1
- 2
- 4
0
votes
1 answer
Stored procedure with EXECUTE AS cannot run xp_cmdshell
I have a sql server user, proxyAccount, which I configured as xp_cmdshell_proxy_account
In a stored procedure I use xp_cmdshell, and when I execute the stored procedure with this account, everything works fine.
However, if I add:
WITH EXECUTE AS…

ANisus
- 74,460
- 29
- 162
- 158
0
votes
2 answers
Impersonation against UAC setting password in code
Is it possible to impersonate an administrator in Vista/Windows 7 setting user name, login and password in the code?
My scenario: A lot of users (without local admin rigths) will execute a C# program; the C# program copy a file to C:\Windows\. I…

daniloquio
- 3,822
- 2
- 36
- 56
0
votes
1 answer
Using COM objects in the Impersonated thread
I'm writing windows service which consists three separated threads. When user logs in (is logged when service starts) I impersonate each thread (so it operates on same access rights as currently logged on user).
(Impersonation code without error…

dizzer
- 106
- 1
- 6
0
votes
1 answer
Trying to impersonate another user to update Active Directory
I have an application in C# where I'm trying to update the AD by impersonating another user.
I'm reading the AD in order to let users update noncritical fields like phone numbers of any AD account. In order to do that, we created a new user with…

Deathmic
- 23
- 1
- 6
0
votes
1 answer
getting the username of the currently impersonated user
I'm trying to impersonate a remote active directory account in my asp.net c# website which is hosted on a none domain computer (or other domain). I've gotten this to work:
IntPtr token = IntPtr.Zero;
LogonUser( "username",…

russds
- 845
- 5
- 25
- 48
0
votes
1 answer
Security of IIS 7.5 impersonation?
I posted this question here before: https://security.stackexchange.com/questions/34405/iis-7-5-impersonation-threat but I thought I would try it here as well if that's ok.
I am using IIS 7.5 and I want to impersonate users for my different…

ChG
- 349
- 1
- 3
- 13
0
votes
1 answer
How to use WindowsIdentity.Impersonate to get the user's login, rather than the ASPNET account
I have a web-app that will reside on a production server where I want to get the user's logged in computer name, circa
DOMAINNAME/USERNAME
Many people have told me that I must use Impersonation/Delegation in order to get this, but no details…

Mark
- 6,123
- 13
- 41
- 52
0
votes
1 answer
WCF Service - Impersonating fixed account in web config
I'm trying to write WCF Service which will be searching through Active Directory services. I would like to set this service to use my fixed credentials, so my password would not expire.
This is how my web.config looks like:
…

Darj
- 1,403
- 1
- 17
- 47
0
votes
1 answer
Impersonation with visual studio development server
I'm trying to simulate impersonation with asp.net. If I use my application with IIS I don't have any problem and simulate the impersonation correctly, but if i use the VS development server I receive this message:
Impersonation of ... failed! [1326]…

user1425879
- 25
- 6
0
votes
0 answers
C# Nested impersonation - impersonate a user whilst already impersonating another
I have a fairly odd requirement to be able to impersonate a user, when I'm already impersonating another, using C#.
I'm writing an app to allow the management of Active Directory users. This app will provide the ability for anyone in the company to…

user676437
- 201
- 1
- 4
- 13