[英]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.