impersonation

Cannot write on a mapped drive using impersonation

泄露秘密 提交于 2019-12-02 04:36:29
Basically I'm running the same problem as this post Accessing mapped drives when impersonating in ASP.NET I'm working on a legacy website and I need to allow the admins to change the site's logo, banners, etc, from an image file on their desktops to a mapped drive on the server. So, their website is using impersonation whenever it needs to save on the drive, and it's working just fine; however I can't manage to make it work on their test environment nor in my test environment. ¿Any ideas? I've double checked user and password (the code doesn't specify domain) and that's not the issue. Here's

Windows Store app with enterpriseAuthentication and Impersonation

一世执手 提交于 2019-12-02 02:43:16
问题 Short Version : Why when I impersonate a web-request made by Windows Store app, I get WindowsIdentity object with correct user name, but its IsAuthenticated property returns False? Making same request from a browser (including Metro IE10) gives IsAuthenticated==true. Long Version : I'm prototyping an internal enterprise solution, which consists of WCF-service and WinJS application. WCF-service is based on the webHttpBinding (i.e. simple GET/POST requests). Certain actions need to be processed

Windows Store app with enterpriseAuthentication and Impersonation

风格不统一 提交于 2019-12-02 02:32:17
Short Version : Why when I impersonate a web-request made by Windows Store app, I get WindowsIdentity object with correct user name, but its IsAuthenticated property returns False? Making same request from a browser (including Metro IE10) gives IsAuthenticated==true. Long Version : I'm prototyping an internal enterprise solution, which consists of WCF-service and WinJS application. WCF-service is based on the webHttpBinding (i.e. simple GET/POST requests). Certain actions need to be processed on behalf of a user making request, therefore service is configured to impersonate its callers. Here

Exchange Impersonation in Service Account: Autodiscover service couldn't be located

人走茶凉 提交于 2019-12-01 21:27:34
Sending a simple email through ews is working as intended - from my account to my account: ExchangeService ews = new ExchangeService(ExchangeVersion.Exchange2010); ews.AutodiscoverUrl("myname@mydomain.com"); EmailMessage email = new EmailMessage(ews); email.ToRecipients.Add("myname@mydomain.com"); email.Subject = "HelloWorld"; email.Body = new MessageBody("This is the first email I've sent by using the EWS Managed API"); email.Send(); Simply trying impersonation, it is also working as intended - in the last line, it returns the error that I am not allowed to impersonate: ExchangeService ews =

Windows Logon as a user without a password with Python

别说谁变了你拦得住时间么 提交于 2019-12-01 14:19:40
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 reading this link bellow, the conclusion is that could be possible, Impersonating another user without password, using Kerberos... but I am not finding any solution written in Python and actually I have no idea if there is a better approach for this problem. https://blogs.msdn.microsoft.com/winsdk/2015/08/28/logon-as-a-user-without-a-password/ Python 3.4.1 x64, Windows 7. Anyone can help me on this?

Process.Start() throws “Access Denied” after Impersonation

扶醉桌前 提交于 2019-12-01 14:11:12
I'm having a problem executing a file from a file server using Process.Start() + Impersonation. Please help me to solve my problem. Is there another way to do this? This is the button click event. private void btnOpen_Click(object sender, EventArgs e) { try { newUser = cls.ImpersonateUser("username", "domain", "password"); string fileName = @"\\network_computer\Test\Test.doc"; System.Diagnostics.Process.Start(fileName); } catch (Exception ex) { throw ex; } finally { if (newUser != null) newUser.Undo(); } } This is the impersonation class. public class clsImpersonate { #region 'Impersonation' /

Process.Start() throws “Access Denied” after Impersonation

心不动则不痛 提交于 2019-12-01 12:04:41
问题 I'm having a problem executing a file from a file server using Process.Start() + Impersonation. Please help me to solve my problem. Is there another way to do this? This is the button click event. private void btnOpen_Click(object sender, EventArgs e) { try { newUser = cls.ImpersonateUser("username", "domain", "password"); string fileName = @"\\network_computer\Test\Test.doc"; System.Diagnostics.Process.Start(fileName); } catch (Exception ex) { throw ex; } finally { if (newUser != null)

ASP.NET: Impersonate against a domain on VMWare

泪湿孤枕 提交于 2019-12-01 11:13:41
I need to impersonate myself as a domain user in a ASP.NET application running on VMWare machine. Since the VMWare machine is not itself in the domain, ASP.NET is unable to resolve the user token (specified in web.config). Is there a way to do that? Thanks in advance, Petr I use this class I wrote all the time and it works like a charm! using System; using System.Security.Principal; /// <summary> /// Changes the security context the application runs under. /// </summary> public class ImpersonateHelper : IDisposable { [System.Runtime.InteropServices.DllImport("Kernel32")] private extern static

Windows Logon as a user without a password with Python

余生长醉 提交于 2019-12-01 09:45:14
问题 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 reading this link bellow, the conclusion is that could be possible, Impersonating another user without password, using Kerberos... but I am not finding any solution written in Python and actually I have no idea if there is a better approach for this problem. https://blogs.msdn.microsoft.com/winsdk/2015

ASP.NET: Impersonate against a domain on VMWare

不问归期 提交于 2019-12-01 09:09:42
问题 I need to impersonate myself as a domain user in a ASP.NET application running on VMWare machine. Since the VMWare machine is not itself in the domain, ASP.NET is unable to resolve the user token (specified in web.config). Is there a way to do that? Thanks in advance, Petr 回答1: I use this class I wrote all the time and it works like a charm! using System; using System.Security.Principal; /// <summary> /// Changes the security context the application runs under. /// </summary> public class