Get domain user from IPAddress or Hostname in .Net

Posted by Duracell on Stack Overflow See other posts from Stack Overflow or by Duracell
Published on 2010-04-05T23:20:10Z Indexed on 2010/04/05 23:23 UTC
Read the original article Hit count: 583

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about c#

Related posts about growl