Questions tagged [impersonation]

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

1522 questions
3
votes
2 answers

Automatically set up user's subscription in SSRS

I have a very simple report in SSRS that is just a table with three columns, an object name, client account, and expiration date. In my report, I include a filter by UserID to limit the data to just the logged in user's client accounts. I store the…
3
votes
3 answers

Dynamically Impersonate a remote user - c# and asp.net

I want to impersonate a remote user dynamically for executing some part of code. I searchd a lot in net and got some codes to impersonate. The code to impersonate is shown below namespace Tools { #region Using directives. //…
Null Pointer
  • 9,089
  • 26
  • 73
  • 118
3
votes
1 answer

WCF AuthorizationPolicy: Impersonation Problem

I have the following situation (outline): Authorization Webservice This service gets called and verifies (by executing the given business logic) whether a user is valid or not. Custom Business Webservice This is some webservice created for a…
Juri
  • 32,424
  • 20
  • 102
  • 136
3
votes
1 answer

google oauth2 impersonate service account with user@gmail.com

I wanted to access some google api services: GDrive API Contact API People API And I'm struggeling with the oauth2 impersonate service account flow (you know that one: Google Oauth v2 - service account description. For impersonification you need…
samatthias
  • 63
  • 2
  • 7
3
votes
2 answers

WCF impersonation is not impersonating an administrator

I am trying to use WCF to do some remote user management things. I and reusing some code I had on a server 2003 box and worked fine, but on my windows 7 test box when I check to see if the user who called the function is administrator it says it is…
Scott Chamberlain
  • 124,994
  • 33
  • 282
  • 431
3
votes
0 answers

Query recycle bin whilst impersonating user

Long story short, I'm trying to query the recycle bin as another user. This is a WPF app with a service, and I need to query the recycle bin within the service... I know... We need to use NetNamedPipeBinding, and can't use the OperationBehavior…
DJH
  • 2,191
  • 4
  • 28
  • 45
3
votes
1 answer

Apache Drill Impersonation

I'm trying to build in security on our Drill (1.6.0) system. I managed to get the security user authentication to work(JPam as explained in the documentation), but the impersonation does not seem to work. It seems to execute and fetch via the the…
Ludel
  • 41
  • 2
3
votes
0 answers

ROLE_PREVIOUS_ADMIN always is_granted for ROLE_ADMIN

I'm following the Symfony docs and using the following twig helper function to determine if a user is switching roles for impersonation. The problem is, it always returns true for ROLE_ADMIN. {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
Dominick
  • 448
  • 5
  • 18
3
votes
0 answers

Impersonating in C# not working for runspace (powershell)

I have a problem with impersonating a user in C#: I impersonate with the known funtion used in thousands of examples: using(Impersonator impClass = new Impersonator(_domain, _userName, _password)) ... After impersonation I run…
3
votes
1 answer

Create Folder in other Mailbox with EWS API

I try to create a contact folder in an other mailbox. Since Powershell can't do this I downloaded a c# sample over this MSDN site: https://code.msdn.microsoft.com/exchange/Exchange-2013-Create-35e4948c/view/Discussions#content Then I modified the…
user3772108
  • 854
  • 2
  • 14
  • 32
3
votes
2 answers

Create virtual user for Sitecore solution - Impersonation purpose

I really need some help, but let me explain first what I have to do. I have a Sitecore super-user, which has the Impersonation role. This user is supposed to be able to impersonate other users (all of them are on extranet domain), having the profile…
Marius Popa
  • 564
  • 1
  • 5
  • 22
3
votes
5 answers

Can I use a attribute to make .net impersonate another user?

I am familiar with impersonating an account in .net by using: dim myIdentity as WindowsIdentity = someIdentity using ctx as WindowsImpersonationContext = myIdentity.Impersonate() doStuff() end using Is it possible to define a .net…
Vivian River
  • 31,198
  • 62
  • 198
  • 313
3
votes
2 answers

How google server can distinguish between browser and HtmlUnit?

If I request the following URL http://www.google.com/recaptcha/api/noscript?k=MYPUBLICKEY I will get old no-script version of captcha, containing image of Google street number, like this But if I'll do the same with HtmlUnit I will get some faked…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
3
votes
1 answer

ASP.NET - Using impersonation but connecting to SQL Server using AppPoolIdentity

We'd like to migrate our SQL Server connections over to using Windows authentication in an ASP.NET application that uses impersonation for connection to a third party system. If we switch the connection strings to using Windows authentication then…
joshuahealy
  • 3,529
  • 22
  • 29
3
votes
3 answers

WCF Web Services - Multiple Hop impersonation on the same server

I have 3 web services, all located on the same server. My Client calls Service A, which impersonates the client to call Service B, and all is well. Now, I want to impersonate the caller of service B (which is my username) to call Service C. When…
Greg Olmstead
  • 1,551
  • 10
  • 22