Someone Please Help

  • Thread starter Thread starter David Lucus
  • Start date Start date
D

David Lucus

I have become lost and need some help. Here is the problem:

I have created a service that will run under a system account when
installed. I am trying to build a client win form that will call the
functions inside the service. I have been able to get the windows identity
of the user that is logged into the client machine. I would like to pass
their credentials to the server so that it can be verified if they are apart
of the correct user group. (Local Administrators).

For the life of me, I cannot figure out how to pass the credentials. I am
trying to connect through the TCPClient and TCPListener in the dotnet
framework. If anyone has any suggestions or direction I would be greatly
appreciative.

Thanks in advance,

David
 
Hi David,

I suspect you may not like the answer to this.

With .NET, machine-to-machine communications is not typically done at the
low level that TcpClient and TcpListener provides. These are two (great)
classes that let us send raw binary down a socket.

If you don't specifically need this low-level control, you have two far
better options. One is to use Remoting, the other is to use Web Services.
If you're already leaning towards TcpClient, I suspect Remoting will be more
attractive to you because this operates at a lower and more performant level
than Web Services (if you do it right). If you host the server using
Remoting inside of IIS, you get all of the security bits and pieces you're
talking about for free.

Cheers,
Matthew
http://www.dotnet247.com/
http://weblogs.asp.net/mreynolds/
 
Back
Top