Re: Communicating with DCOM server using another user account



"nicolasr" <nicolasrREMOVETHISSPAMBLOCKER@xxxxxxx> wrote in message
news:uQghukqgHHA.4924@xxxxxxxxxxxxxxxxxxxxxxx
thanks for the reply!
Unfortunately I have to use a client toolkit that hides these parameters.
Is there any way to change the client identity afterwards?
If not I will have to recompile part of the client toolkit :-(

thanks
Nick

Hmm..... so on the server side, one hand is tied behind your back since user
B is required. And on the client side, your other hand is tied behind your
back since you can't call CoCreateInstanceEx to set the user authentication
to user B.

Short of untying your hands, I'll give you yet another solution: call
CoSetProxyBlanket as soon as you acquire the remote interface, setting the
RPC_AUTH_IDENTITY_HANDLE parameter to user B.

Brian


.