Impersonation is a process whereby an application assumes another identity or security context during execution.
Questions tagged [impersonation]
1522 questions
0
votes
2 answers
Impersonation in windows domain
I am trying to write an impersonating Control where our employees can login as a different domainuser within our apps, see my code below (nearly complete copy of MSDN article):
[DllImport("advapi32.dll", SetLastError = true, CharSet =…

Jan P.
- 3,261
- 19
- 26
0
votes
1 answer
c# run console application as different user... impersonation
Possible Duplicate:
Process.Start() impersonation problem
I am trying to run a console application as a different user in c#, but I am having trouble. Here is part of my code:
public void encryptPGP(string fileName)
{
string sCommandLine = ""…

user1663372
- 11
- 1
- 3
0
votes
1 answer
"Impersonated" User Not Propagated To SQL Server 2000
I need to "impersonate" a user in a VB.NET 2008 WinForms application, so that the application can accept the Active Directory login of any user on a PC regardless of who is actually logged in to Windows. I want the application's My.User to be the AD…

HardCode
- 6,497
- 4
- 31
- 54
0
votes
1 answer
Delegation in WCF not working - First hop is NTLM?
I'm working on a project which requires delegation in a double-hop scenario. We have a desktop client, connecting to a WCF service using a net.tcp binding, connecting to a SQL database on another server. Our goal is to use the user's credentials to…

Steven Collins
- 71
- 2
- 9
0
votes
1 answer
impersonation is failing in running the Installed Application After finishing the Setup
I have a small application and a wix setup for that. It automatically downloads the application update from server and launch it in reinstall mode and finish it launch the updated exe file.
But setup is showing an error Debug assertion failed in…

USER_NAME
- 1,029
- 1
- 14
- 33
0
votes
1 answer
Impersonate FormsAuthenticated user in HttpHandler for WCF call
I'm using HttpHandlers to generate PDF report files "on-the-fly" using the authenticated user context.
However, to create the report PDF file I need to call a method on a secure WCF service with the context of the caller (the authenticated user).
I…

R4cOOn
- 2,340
- 2
- 30
- 41
0
votes
1 answer
Impersonate and encrypt user account to call Web Service from ASP.NET application
I have an ASP.NET Web Forms application and I need to impersonate an account to connect to a Web Service. The application always connects with the same account and has to be encrypted.
The client is MyWebServiceClient() my code…

CiccioMiami
- 8,028
- 32
- 90
- 151
0
votes
1 answer
Impersonate in IIs6
We having a problem with our web server that it denies the access to shared folders, after some investigation I have notice that the 'WindowsIdentity.GetCurrent().Name' returning the client side user name 'my User Name' instead of 'Network…

cyrus-d
- 749
- 1
- 12
- 29
0
votes
3 answers
impersonation for windows service using config file
Currently to run windowsservice as a fixed user we set the logon properties on the windows service (where we specify the username and password to run as).
but iam willing to have this feature of running the windows service as a fixed user
as…

sundar venugopal
- 3,080
- 6
- 39
- 45
0
votes
0 answers
Impersonation within wcf
At the moment I'm working with a WCF service that is used by an Asp.net MVC application.
For security reasons I'm using a guid that represents a username and pasword. ( When the user logs in, WCF checks the credentials in active directory and…

Gert Hermans
- 769
- 1
- 9
- 30
0
votes
1 answer
Membership Provider producing unexpected SQL Error
I am getting the following error when calling Membership.GetUser() on a specific page (first page on the site to do so as we implement proper security controls)
System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'IIS APPPOOL\UAT…

Roger Willcocks
- 1,649
- 13
- 27
0
votes
0 answers
c# Bad Username or Password when using impersonation
What I am trying to do is allow a machine that is not on the domain access to run a registry check tool by Impersonating Domain Credentials....It works fine for any machine on my domain but anyone off the domain gets a bad username and password…

user1564238
- 1
- 1
- 1
0
votes
1 answer
GetListItems "request failed with HTTP status 401: Unauthorized"
I have an asp.net web application without ssl enabled using lists.asmx on a sharepoint 2010 site with ssl enabled. I have added the lists.asmx as a web reference called "myref".
The code I'm using is below:
Web.config snippet
…

potterr
- 53
- 1
- 6
0
votes
1 answer
WCF Impersonation doubts
What impersonation level is required when implementing a service that needs to access out-of-process resources on behalf of the original caller?
According to MSDN
Impersonation: The server process can impersonate the client's
security context…

user27839
- 25
- 4
0
votes
1 answer
Enabling impersonation and use Powershell as admin role
I am making an application that uses the EWS API, this application accesses different accounts, and in order to do that I have to use the impersonation. I have tried the impersonation ... but the problem I receive the error that I do not have…

Ahmad ElMadi
- 2,507
- 21
- 36