简体   繁体   English

Windows Forms 来自非域添加机器的模拟

[英]Windows Forms Impersonation from a non-Domain added machine

I would like to know if it is possible to perform an impersonation from an application that is running on a machine that is NOT added to the specified domain?我想知道是否可以从未添加到指定域的计算机上运行的应用程序执行模拟?

The application is a Windows Forms application.该应用程序是 Windows Forms 应用程序。 The WindowsIdentity.GetCurrent().Name does not change after the impersonation has been done by calling UserLogon(), DuplicateToken() and Impersonate()通过调用 UserLogon()、DuplicateToken() 和 Impersonate() 完成模拟后,WindowsIdentity.GetCurrent().Name 不会更改

Is this something that can be done?这是可以做到的吗?

I don't think so.我不这么认为。

Either you would need to add the machine to the domain or another trusted domain.您需要将机器添加到域或另一个受信任的域。

There may be something you could do with some custom key exchange protocol but...您可能可以使用一些自定义密钥交换协议来做一些事情,但是......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从非域计算机连接到域SQL Server 2005 - Connect to domain SQL Server 2005 from non-domain machine 使用Windows身份验证从非域计算机访问SQL Server 2005 - Access to SQL Server 2005 from a non-domain machine using Windows authentication 在非域计算机上使用域控制器以编程方式同步时间 - programmatically sync time on non-domain machine with domain controller C#ActiveDirectory - 如何从已加入域的计算机远程添加本地用户帐户到非域计算机 - C# ActiveDirectory - How do I add a local user account remotely from a domain-joined machine to a non-domain machine 如何列出非域计算机上运行代码的域? - How to list domains running code from a non-domain computer? 非域Windows环境中的C#程序化远程文件夹/文件身份验证 - C# Programmatic Remote Folder / File Authentication In Non-Domain Windows Environment 无法在非域上访问服务Windows 7自托管WCF应用程序 - Can't access service Windows 7 self-hosted WCF app on a non-domain 在Windows域中模拟 - Impersonation in windows domain 如何列出从非域计算机运行代码的所有域中的用户? - How to list users in all domains running code from a non-domain computer? 如何在非域xp计算机上与域控制器同步时间? - how to sync time on a non-domain xp computer with domain controller?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM