impersonation Questions
2
Solved
In an local Intranet environment, are we doomed to use "Classic" pipeline mode in our App Pool if we want to use Impersonate our Windows domain users, or is there a new way to declaratively "run as...
Spokane asked 19/10, 2012 at 1:52
1
I'm trying to use ServerManager.OpenRemote (from Microsoft.Web.Administration) but am unable to find documentation on how to give it different credentials from the current user. I tried SimpleImper...
Shrink asked 17/3, 2014 at 15:26
0
I am using @MattJohnson's technique for impersonating a new user using C# on .NET 4.0 on a Windows 2008 R2 domain, as described here. I manage to log on the user successfully, and the call to Windo...
Mensch asked 15/3, 2014 at 17:48
3
Solved
I have a WCF Service running on a Server, which is configured to accept Kerberos authentication.
Kerberos works fine and the WCF Service therefore knows, which user is connecting to him.
The Servi...
Mellar asked 7/2, 2014 at 12:53
1
We have upgraded an ASP.NET web application from IIS6 to IIS7 integrated mode. Our application uses:
<identity impersonate="true"/>
and therefore we have had to set:
<validation valida...
Villeinage asked 6/3, 2012 at 16:13
1
Solved
I have several DBs with UserA and UserB.
In some of those DBs, impersonation has been granted (GRANT IMPERSONATE ON LOGIN::UserA TO UserB), in other DBs users have no impersonation.
How can I chec...
Nesto asked 30/12, 2013 at 16:59
3
Solved
I have done impersonation in SharePoint quite a bit in the past by doing something such as the following.
SPWeb web = SPContext.Current.Web;
string currentWebUrl = web.Url;
SPUser user = web.Ensur...
Pleonasm asked 22/6, 2009 at 3:53
1
Solved
I'm working a service, which should impersonate the logged on user.
My code so far, with basic error handling:
// get the active console session ID of the logged on user
if ( !WTSQueryUserToken(...
Zweig asked 5/11, 2013 at 18:44
2
Solved
I have a service that I want to when accessing databases I want to access databases
to use the calling identities credentials.
Before I access a particular database I do an impersonation by
var w...
Torsion asked 31/10, 2013 at 8:42
5
Solved
I'm tearing my hair out on this one, I have a WCF service that I can call through the browser and it works fine, when I call it from the web application with the below method I get a (401) Unauthor...
Shortfall asked 30/9, 2013 at 21:24
2
I have a .NET MVC3 application that needs to be able to turn a remote service on and off. In order to do this I am impersonating a specific user account via WindowsIdentity.Impersonate(). To test t...
Desilva asked 20/12, 2011 at 21:1
2
Solved
In Windows Vista and later, LogonUser returns a non-privileged token, even if the user provided is an administrator. Thus, when you impersonate using that token, you are non-elevated. Given a corre...
Garnetgarnett asked 27/9, 2013 at 12:11
1
We have an ASP.NET Site in .NetFramework 2 (with App Pool 2 Classic in IIS 7.5), We use mixed Authentication with Basic Authenticate and Form Authenticate.
The Configuration in IIS is:
And hav...
Handcar asked 17/9, 2013 at 6:44
1
Solved
Update 2
This question originally was "Does impersonation work with Web API?"
And the question to that question is "Yes, it does."
But the problem was not about Web API but impersonation itself....
Livi asked 13/8, 2013 at 12:10
1
Solved
I enabled impersonation and Windows authentication.
<authentication mode="Windows" />
<identity impersonate="true" userName="name" password="passord"...
Aaronson asked 13/8, 2013 at 9:32
1
Solved
From my reading on user impersonation on Windows, one should properly use the LOGON32_LOGON_NEW_CREDENTIALS logon type for impersonating a user to a database. Using Matt Johnson's nice impersonatio...
Osmond asked 6/8, 2013 at 22:56
3
Solved
I am using the code to impersonate a user account to get access to a file share.
public class Impersonator :
IDisposable
{
#region Public methods.
// -------------------------------------------...
Plank asked 28/3, 2012 at 14:37
2
Solved
In my Website, Users who has logged in are able to change their profile pictures, and this process includes saving the uploaded image to a folder in the website's root directory.
When I tested it,...
Mutineer asked 29/7, 2013 at 12:22
4
Solved
I have an WebService that creates a task and a continuation task.
In the first task we set Thread.CurrentPrincipal
Hence, When the ContinuationTask starts it no longer has the Thread.CurrentPrinc...
Eldwon asked 27/12, 2012 at 16:18
1
Is there a way to start / stop a windows service of a server in a different network
(not \\<server name>) from an asp.net page?
I tried using ServiceController but it's only work if it's i...
Russel asked 13/6, 2013 at 21:21
1
Solved
I have a System service that launch an application using the method CreateProcessAsUser.
This service uses impersonation to launch the app in the active session. The Application is launching as i...
Idiom asked 3/7, 2013 at 14:41
2
Solved
I have C# (.NET 4.5) code like this (simplified for demonstration) used to connect to a SQL Server 2012 database:
public static void Test(WindowsIdentity ident)
{
using (WindowsImpersonationConte...
Frear asked 14/6, 2013 at 21:59
1
Solved
I'm trying to check wether a directory exist on not or a local network. After some research on stackoverflow and MSDN, I develop my code by using impersonate method. The problem is it's not working...
Marris asked 5/4, 2013 at 9:30
2
Solved
I'm having some trouble calling a web service from within a web application and I was hoping someone here might be able to help. From what I can tell, this seems to have something to do with the Ke...
Unoccupied asked 18/2, 2013 at 1:51
1
Solved
When I tried to access network drive file from local its working fine but when i deploy the code I am getting bellow error
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
...
Onitaonlooker asked 7/2, 2013 at 14:41
© 2022 - 2024 — McMap. All rights reserved.