impersonation Questions

3

Solved

Why does the code below work fine when I run my web application localhost but not when I install it to an IIS server? using (HostingEnvironment.Impersonate()) { UserPrincipal activeUser = UserPri...
Cancroid asked 21/6, 2012 at 12:40

0

I am struggling to implement a Impersonation feature into the Identity Server 4 Service. I understand that there's a lot of people who are against implementing it the way I want to but I really nee...
Incessant asked 1/12, 2018 at 22:24

9

Solved

When I try and access my newly deployed (to lcoal IIS 7.5) MVC4 app, I get the error: Login failed for user 'DOMAIN\MACHINE-NAME$' where the '$' is appended and not part of the machine name. ...
Borras asked 14/2, 2013 at 7:53

4

Solved

How can I get the Access Token for the user that created the process that called my application? I need to use that Token for impersonation, the idea is to access a file in that users applicationD...
Sequoia asked 14/9, 2011 at 15:22

5

Solved

My Winforms app set permissions based on the group membership found in the current process. I just made a unit test in MSTEST. I'd like to run it as other users so I can verify the expected behav...
Eyler asked 22/3, 2011 at 20:19

4

Solved

I'm creating an intranet asp.net mvc application that everyone in the company should have access to. I need to run the website impersonated for database access etc., but I want to know who each use...
Pycno asked 12/8, 2009 at 15:50

2

I had the following in a .NET Framework 4.0 assembly: var newId = new WindowsIdentity(duplicateTokenHandle); WindowsImpersonationContext newId = ImpersonatedIdentity.Impersonate(); I'm porting it ...
Fascicle asked 2/10, 2017 at 15:52

2

Machine A and Machine B are in different domains. Machine A uses a VPN to gain access to Machine B's network. I am trying to impersonate a user for the purpose of using Microsoft.Web.Adminstration...
Sherly asked 27/4, 2018 at 4:18

2

Solved

I hope someone can help, I am trying to enable enable "ASP.Net Impersonation" under the Authenticatuin section in IIS7, I have enabled other sections using the following command: Set-WebConfigurat...
Opaline asked 27/7, 2011 at 16:8

1

Solved

Let's say I have the following roles: Admin User I want Admin role to impersonate specific user account with User role, but without knowing that specific user account's password. Admin should...

7

Solved

Is there a simple out of the box way to impersonate a user in .NET? So far I've been using this class from code project for all my impersonation requirements. Is there a better way to do it by us...
Herzig asked 24/9, 2008 at 3:55

3

I have an asp.net web application with forms authentication and users (credentials) are checked against active directory, username is actually samAccountName attribute from AD. Now I need to enable...

3

I've been trying to use LogonUser(...) to get an access token for a user account, as in this MSDN sample. // Call LogonUser to obtain a handle to an access token. bool returnValue = LogonUser(user...
Mandeville asked 20/9, 2011 at 16:53

2

I have an ASP.NET application which uses claims bases authentication against ADFS. I also map it to a WindowsClaimsIdentity by using the Claims to Windows Identity Service. That works fine. But no...
Proparoxytone asked 2/2, 2012 at 21:32

6

Solved

Here's my Windows/.NET security stack: A Windows Service running as LocalSystem on a Windows Server 2003 box. A .NET 3.5 Website running on the same box, under "default" production server IIS set...
Emory asked 4/5, 2009 at 1:36

0

I have a Spark application executing various jobs for different users simultaneously, via several Spark sessions on several threads. My customer would like to kerberize his hadoop cluster. I wonde...

1

I am trying to implement the impersonate using SwitchUserFilter in Spring but I'm getting an error. The project runs good without this implementation. Also the project is using Java annotations not...
Ehrlich asked 20/4, 2017 at 21:31

1

I have a situation here. Using Python, I have a process been created (running as SYSTEM or Administrator user) and I need to call an application using a different username without password. So read...
Clotho asked 30/3, 2017 at 9:48

2

Solved

I'm writing an Intranet application. Target framework in project.json is dnx451. That's my publishing command: dnu publish --runtime dnx-clr-win-x86.1.0.0-rc1-update1 --no-source Database Connec...
Pallmall asked 3/2, 2016 at 15:18

1

Solved

for a first understanding, I have created a very simple project which tries to count the number of files in two directories. User1 is not allowed to access Directory2 and User2 is not allowed to ac...
Epicycle asked 19/9, 2016 at 11:8

2

I've been given the task of writing an web interface for a legacy database we have where all users have database accounts and are assigned roles accordingly (we have triggers all over the place rec...
Kenric asked 30/1, 2014 at 18:28

1

Solved

I am trying to impersonate a domain user in a windows service with the service logged in as the Local System Account. So far, I am only able to get this to work by logging the service and set the ...
Binette asked 8/7, 2016 at 20:1

1

Solved

While testing an application, I ran a into strange behaviour. Some of the tests use impersonation to run code as a different user, but they would always hang, never complete. After some investigat...
Alacrity asked 13/4, 2016 at 7:44

2

I have a Java web app which provides a search service, and in some cases needs to check security for results. If it matters, it's implemented in Spring MVC and running under jetty. I have a custom...
Exurbia asked 12/3, 2016 at 0:34

1

bool bRet=LogonUser(strUserName, L"", strPassword, LOGON32_LOGON_TYPE_NEW_CREDENTIALS, LOGON32_PROVIDER_WINNT50, &phToken) bRet always returns true even if I enter a wrong password when ther...
Depression asked 11/2, 2016 at 11:54

© 2022 - 2024 — McMap. All rights reserved.