简体   繁体   English

如何通过网络连接以编程方式验证Windows用户

[英]How to programatically verify Windows User via a network connection

Given a windows domain, and two win7 systems, how can I establish a user verified connection from the first computer to the second without prompting for the user to re-enter credentials. 给定一个Windows域和两个win7系统,如何在不提示用户重新输入凭据的情况下建立从第一台计算机到第二台计算机的用户验证连接。

A good summary of this is: A TCP connection, server-side, has no idea what user is originating the connection. 一个很好的总结是:服务器端的TCP连接不知道发起连接的用户是谁。 How can implementing a TCP based program permit user validation. 如何实现基于TCP的程序可以允许用户验证。

Work around ideas: - I could write a WMI provider and use the underlying WMI infrastructure to verify the user. 解决想法:-我可以编写WMI提供程序并使用基础WMI基础结构来验证用户。

I'd prefer not to get a work-around, as I've been working around not really understanding how to authenticate over the network using Windows for many years. 我宁愿不要变通,因为多年以来,我一直在不真正了解如何使用Windows通过网络进行身份验证。 Please help me to understand how Windows is actually performing this step so that I can implement the technique. 请帮助我了解Windows实际如何执行此步骤,以便我可以实施该技术。 If the answer is kerberos some example code on how to generate/send something from the client (without prompting for credentials, just use the logged in user) that the server can process/validate. 如果答案是kerberos,则服务器上可以处理/验证的一些示例代码,说明如何从客户端生成/发送某些内容(不提示输入凭据,仅使用登录的用户)。


I think this may have already been answered here: Windows authentication token C++ 我认为这里可能已经回答了: Windows身份验证令牌C ++

(Will need some time to implement/test before I will be sure.) (我肯定需要一些时间来实施/测试。)

The magic answer I was looking for back then was SSPI (Kerberos) . 当时我一直在寻找的神奇答案是SSPI(Kerberos) A similar solution exists with OpenSSL. OpenSSL存在类似的解决方案。 For others looking for this you will also be interested in SSL, TLS (the new SSL), and SASL (a mechanism for deciding on the fly which identification algorithm to use) and it's Microsoft counterpart SSPI. 对于寻求此功能的其他人,您还将对SSL,TLS(新的SSL)和SASL(一种即时确定要使用哪种识别算法的机制)以及Microsoft的SSPI感兴趣。

暂无
暂无

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

相关问题 如何在Windows中验证用户的名称和密码? - How to verify user's name and password in Windows? 当用户单击禁用的窗口(通过 EnableWindow(hwnd, FALSE) 禁用)时,如何以编程方式阻止 Windows 播放“默认提示音”声音? - How to programatically hinder Windows from playing "Default Beep" sound when user clicks on disabled window (disabled via EnableWindow(hwnd, FALSE))? Windows API,用于拨打网络连接 - Windows API for dialing a network connection 如何在Windows中模拟慢速网络连接 - How do I emulate a slow network connection in Windows 如何获取Windows中VPN连接使用的底层网络接口 - How to get the underlying network interface used by a VPN connection in Windows 如何在Windows 7下强制在Python中传出连接的特定网络接口? - How to force specific network interface for outgoing connection in Python under Windows 7? 是否可以在 Windows 中以编程方式授予用户管理员权限? - Is it possible to programatically give a user administrator privileges in Windows? 如何在Windows中以编程方式创建VLAN? - How to programatically create a VLAN in windows? Windows .inf文件:如何在网络驱动程序安装期间设置默认的网络连接名称? - Windows .inf files: how do I set the default Network Connection name during network driver install? 如何通过Windows XP中的控制台重置inet(dsl)连接? - How to reset inet(dsl) connection via console in Windows XP?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM