impersonating the user initiating an action over the network

I am trying to write a simple server/client application that will perform operations on the server using the permissions of the person running the client.

I have saught to do this by serializing a WindowsIdentity object representing the client and sending it through a NetworkStream that is connected to the server (which will run as a windows service).

Then I attempt to impersonate the user on the server using the WindowsIdentity object.

Well, aparently the WindowsIdentity object does not contain a full set of credentials because once it gets to the server it simply sais that the handle is bad.

I can see how this situation would happen, but what to I need to do to transmit the user's security token to another computer so that I can impersonate the user

Alternately, is there some other way that anyone knows of to acomplish my goal as I have presented it here

If possible I would like to know an object or member name or a topic title related in some way to this process so that I can search for it in the MSDN library.

Jake Wagner, Sr. IT Tech
Computer Information Science Department
American River College



Answer this question

impersonating the user initiating an action over the network