从.Net中的IPAddress或主机名获取域用户 [英] Get domain user from IPAddress or Hostname in .Net
问题描述
我们正在努力为Windows的Growl实施一个自定义解决方案。我们告诉Growl客户端订阅我们服务器的通知。然后,服务器通过GNTP(Growl消息协议)从客户端获取消息。我们需要登录客户端计算机的用户的名称才能进行数据库查找。 GNP不提供此信息。
所以,我们有一个连接的客户端套接字(因此,IP地址)和一个包含其机器名称的客户端的消息。 / p>
有没有办法确定登录指定机器的用户的用户名?我们可以访问Windows域服务。
我们最终通过客户端应用程序运行在登录时,让我们的服务器知道哪个用户登录。
We're trying to implement a custom solution for Growl for Windows. We tell the Growl client to subscribe to notifications from our server. The server then gets a message from the client via the GNTP (Growl messaging protocol). We require the name of the user logged into the client machine in order to do database lookups. The GNTP does not provide this information.
So, we have a connected client socket (and thus, IP address) and a message from this client containing its machine name.
Is there any possible way to determine the username of the user who is logged into the specified machine? We have access to windows domain services.
We ended up doing the reverse (sorta) by having a client-side application run at logon and let our server know which user had logged in.
这篇关于从.Net中的IPAddress或主机名获取域用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!