Все вопросы: [impersonation]

109 вопросов

похожие теги:
0
голосов
1ответов
3799 просмотров

How to use WindowsIdentity.Impersonate to get the user's login, rather than the ASPNET account

I have a web-app that will reside on a production server where I want to get the user's logged in computer name, circa DOMAINNAME/USERNAME Many people have told me that I must use Impersonation/Delegation in order to get this, but no details beyond that have been provided. Originally, my ...

0
голосов
1ответов
1720 просмотров

WNetAddConnection2 in Windows 7 with Impersonation and no Error Code

I'm doing some crazy impersonation stuff to get around UAC dialogs in Windows 7 so the user does not have to interact with the UI (I have the admin creds of course). I have a process running as the Administrator and elevated past UAC. The issue that I'm facing is that when I make a call to WNet...

3
голосов
1ответов
2422 просмотров

Why CreateProcessAsUser requires interactive window station on Vista/Windows 7?

I had to delve into this because the code that worked fine on Windows 2003/XP doesn't on Windows 7. Application launched by the use of CreateProcessAsUser fails with 0xc0000142 error code. The difference between my old code and one available from MSDN at Starting an Interactive Client Process in ...

6
голосов
6ответов
1686 просмотров

Why does Windows not allow WinSock to be started while impersonating another user

Using my own program or others I can't get winsock to run when calling if the process is created with CreateProcessWithLogonW or CreateProcessAsUserW. It returns this error when I create the socket: WSAEPROVIDERFAILEDINIT 10106 Service provider failed to initialize. The requested servic...

1
голосов
1ответов
2930 просмотров

ImpersonateLoggedOnUser doesn't appear to work

After a successful call to both LogonUser and ImpersonateLoggedOnUser it doesn't appear that my process is running as the new user... system("whoami"); prints out: Chris-PC\Chris when it should be: Chris-PC\LimitedGuy Is there a function I'm not calling or something? My code: if(argc == 6) ...

1
голосов
3ответов
3297 просмотров

How can I pass logged on user details from ASP.Net web app to WCF service?

I have 2 web applications: one is an ASP.Net web app and the other is an ASP.Net WCF web services application. I want to the web app to the WFC web app's consume services. Eventually, these 2 apps will be communicating over a firewall. I want the user to log on to the client web app using forms ...

1
голосов
1ответов
2763 просмотров

File.Exists() incorrectly returning false from ASP.NET - security issue related to Thread vs Process identity?

I have an ASP.NET app using Windows authentication, and I'm testing for the existence of a file on a remote server. I'm authenticating as MYDOMAIN\my.username - this works. The file is \MYSERVER\WebShare\example.txt. This file exists. I can open it from various hosts whilst logged in as MYDOMAI...

0
голосов
5ответов
1056 просмотров

Impersonation and Registry Manipulation in Vista\Win7

I need to create a program that has access to HKLM when running in a non-admin session. I have access to the admin credentials so impersonation seems to be an option.The sequence of Win32 calls is: LogonUser ImpersonateLoggedOnUser RegOpenKeyEx RegCreateKeyEx The key is successfully created ...

7
голосов
1ответов
11168 просмотров

LogonUser, LOGON32_LOGON_INTERACTIVE and LOGON32_LOGON_NETWORK

Can anyone provide a clear explanation of the difference between LOGON32__LOGON_INTERACTIVE and LOGON32_LOGON_NETWORK when used with LogonUser? The MS documentation is here. But I'm not clear what should be used. The scenario is similar to a telnet server that Windows users (local to the serve...

4
голосов
6ответов
509 просмотров

Ethics & Impersonation: Alternatives?

Have you ever troubleshoot for your customer and ask (or really want to) their credentials to check their settings if the fault is there? Our solution to this is to implement impersonation feature to login as any users and have access to everything users do. In this case, a mail application. Alth...

10
голосов
4ответов
11163 просмотров

Can I use token based authentication with active directory?

I want to be able to securely logon to a system without having to type in username password from a windows pc on active directory. The idea is that I (the client software, running on a logged on windows machine) have some sort of token that will prove to the server that I am who I say I am (the s...

0
голосов
1ответов
673 просмотров

Running a classic ASP page as under IIS account when Windows auth is enabled

I've got windows authentication enabled on an ASP page so that I can grab the current user's username. This forces the ASP page to run as that user. I want to lock some files down that are currently being accessed by that page. Is there a way to have Windows Authentication enabled and still run t...

0
голосов
1ответов
94 просмотров

Impersonation for sp_OA* on SQL Server 2000

Is there any way to impersonate for sp_OA* calls? I'm specifically using this for file system management, and I'm doing everything in TSQL to avoid DTS since there's a possibility of upgrading to 2005 and I want this solution to be cross-version. Unfortunately, I need to access remote file syst...

24
голосов
1ответов
25909 просмотров

Impersonation in ASP.NET MVC

I have a MVC web application on an intranet and want to be able to create files on our FTP server to send to outside partners. The code for impersonation uses the WindowsImpersonationContext. System.Security.Principal.WindowsImpersonationContext impersonationContext; impersonationContext = ((S...

1
голосов
1ответов
1915 просмотров

Can I programmatically do a "net use" on a file share?

Within a VB.NET program, I want to read files from a filesystem, then write a compressed version of those files to a remote, secure fileshare, using different credentials. The analogous operation at the cmd prompt is: net use s: \server\share /user:foo [email protected] copy a+b | compress > s:\foo....

0
голосов
1ответов
1912 просмотров

Is it possible to create a NetworkCredential object from the current HTTP context?

This is related to this question which hasn’t had much success in the context of SharpSVN so I’m rephrasing in a pure .NET security context. I’m wondering if it’s possible to create a NetworkCredential object based on the current logged on user in an ASP.NET app without explicitly requesting user...

0
голосов
3ответов
183 просмотров

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 some image in one of its panels. How can I grab...

0
голосов
1ответов
672 просмотров

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 application is for internal use at our company,...

0
голосов
2ответов
692 просмотров

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 with the error code 5 (ACCES DENIED). I tried to ...

1
голосов
3ответов
571 просмотров

ASP.NET impersonation credentials

In my app's config there is a impersonation tag containing username and password and I'm wondering what should these credentials be to make the app work - are these the credentials of some user in the domain or the IIS server or what?

3
голосов
1ответов
8229 просмотров

Possible to impersonate in app.config for console application?

I know you can impersonate in web.config, Is the exact same thing possible in app.config for a console application?

0
голосов
2ответов
561 просмотров

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); WindowsImpersonationContext impersonatedUser = newId....

2
голосов
1ответов
633 просмотров

Asp.Net Impersonation over a VPN

I'm doing a spot of development from home over a VPN. The project is an Asp.Net 2.0 (Using 3.5 SP1) app that uses impersonation. The account that is impersonated is on the domain at work but when ever I attempt to run the app I get the following error: 'Logon failure: unknown user name or ...

46
голосов
4ответов
90057 просмотров

How to get Windows user name when identity impersonate="true" in asp.net?

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 user is. When I look at Page.User.Identity.Name it's blank. Is it possible to get the user's windows...

3
голосов
2ответов
1259 просмотров

Why can't I open a file using impersonation on a remote machine?

I have a WCF service written in C# being hosted on a remote machine, running as the local administrator account. From my machine logged in as an active directory user, I am sending a command that simply tells it to open a file on the network. I have access to the file, but the administrator accou...

3
голосов
4ответов
5763 просмотров

A proper way to access files on different machine using C#

I want to read files off of different windows machine on the same network, NOT part of the same domain though. (ASP.NET C# app) Tried FileStream (can't authenticate), tried FileWebRequest (reverts to FileStream when file:/// is used), and impersonation (support.microsoft.com/kb/306158#4) Which sa...

0
голосов
1ответов
1177 просмотров

"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 account of the person who logged in to the appl...

0
голосов
1ответов
1311 просмотров

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 saw plenty of answers for the Windows authentic...

8
голосов
1ответов
9441 просмотров

Impersonating users through NTLM

I have an internal application which has two levels of security. FormsAuthentication for client-facing application and NTLM Integrated authentication for management interface. I can easily impersonate clients by just creating the proper .ASPXAUTH cookie with the FormsAuthentication class' method...

0
голосов
3ответов
4351 просмотров

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 impersonation in web application mentioned in the con...