Questions tagged [impersonation]

Impersonation is a process whereby an application assumes another identity or security context during execution.

1522 questions
0
votes
1 answer

Call REST service while impersonating a user that is already authorized to the glasfish server

There are two web-applications deployed on a glassfish server. Both web applications provide a REST web service. the access to both web-services is secured via glassfish security constraints (at the moment BASIC Auth and file-realm). Let's say a…
Matthias
  • 313
  • 1
  • 8
0
votes
0 answers

impersonator working with no local user account

I am using an impersonator from code project: http://www.codeproject.com/Articles/10090/A-small-C-Class-for-impersonating-a-User I have implemented this correctly and seems to be working, but I don't think it should be. I have implemented it in a…
Andy Clark
  • 3,363
  • 7
  • 27
  • 42
0
votes
3 answers

How to get/set data of(into) visual components (of windows programs) programmatically?

I am talking about windows GUI programs. Say a program-window has a dialog box (or a confirm button) asking user input. How can I provide input to that program using my program (written in say C#, Java or Python). Or say, a program window is showing…
mshsayem
  • 17,557
  • 11
  • 61
  • 69
0
votes
1 answer

Run Process From Different User, Without Password, but from Admin (VB.NET)

I need to monitor other accounts on a Windows Server, and have figured out that to do so, I have to be able to run a monitoring process on them. The main program runs from a full-access (possibly NT_AUTHORITY) account, but all ways of starting…
AlphaModder
  • 3,266
  • 2
  • 28
  • 44
0
votes
1 answer

Impersonate settings in config for multiple databases

I have a console application which connects to two different SQL databases. I'm using the "impersonate" tag within the config file to force the application to login as "APP_USER". The APP_USER account utilizes windows authentication & has been…
Rethic
  • 1,054
  • 4
  • 21
  • 36
0
votes
1 answer

Impersonation in Windows Server 2008

I am trying to impersonate a specific user to perform some sql operations in our server. This is not a ASP.Net application. I used the provided code before and it worked. But, recently we have upgraded our environment from windows server 2000 to…
Teja
  • 1
  • 2
0
votes
0 answers

Exit user impersonation by clicking a link

I'm trying to create a link to exit a user impersonation session. When the user clicks the exit link, he should get redirected to the admin dashboard and be logged in as himself again. I have created a link as followed: (This doesn't work as I get…
mattyh88
  • 1,585
  • 5
  • 26
  • 48
0
votes
1 answer

Impersonate User for Silverlight Unit Test

I'm attempting to write some tests using the Silverlight Unit Test Framework (the unsupported, unofficial MS library Microsoft.Silverlight.Testing). I need to impersonate three different users when testing some functionality of our application. Our…
Adam Porad
  • 14,193
  • 3
  • 31
  • 56
0
votes
1 answer

implement impersonate in symfony2 without editing security.yml

I want to implement impersonate in symfony2 without editing security.yml file. How can I do that?
Mohammed H
  • 6,880
  • 16
  • 81
  • 127
0
votes
2 answers

Network logon from an impersonation token

In a service impersonating a client (using ImpersonateNamedPipeClient), I try to call CreateProcessAsUser. The executable filename is a UNC path located on a third computer (neither the server, nor the client connected to the pipe). The call fail…
Emmanuel BERNAT
  • 793
  • 6
  • 17
0
votes
2 answers

A .NET custom attribute to perform impersonation?

I have some methods that need to run as a certain service account, so I do the normal thing: public DoSomeWorkAsServiceAccount() { ... // assume I am given tokenHandle WindowsIdentity newId = new WindowsIdentity(tokenHandle); …
Jeff Meatball Yang
  • 37,839
  • 27
  • 91
  • 125
0
votes
2 answers

How to host asp.net application using Window authentication using window servicing account

I am working into an organization which uses Active directory for any kind of application authentication. We recently created a web application on ASP.NET using Sql Server for database connectivity. During development process we used window…
Shantanu Gupta
  • 20,688
  • 54
  • 182
  • 286
0
votes
0 answers

Mobile app, inviting friends from social networking sites

I'm writing a mobile app, and I've reached a roadblock in trying to figure out how the owner of a Facebook profile could also be the same owner of a Twitter profile, based only on account info. If John Smith signed up for Facebook, but didn't input…
Jason
  • 6,878
  • 5
  • 41
  • 55
0
votes
1 answer

Access Denied for WMI when impersonating user on remote machine

I'm trying to collect process information from remote machines using System.Management. I'm impersonating an admin on the remote machine using something along these lines, but the following code throws an exception: "Access…
dckrooney
  • 3,041
  • 3
  • 22
  • 28
0
votes
1 answer

WCF Changing credentials

I have a web app that calls a WCF web application with several services, all using basicHttBinding, on different servers (web server, app server and database server). One of the services has to connect to a database that must be called using an…
Paul Speranza
  • 2,302
  • 8
  • 26
  • 43