Re: Communicating with DCOM server using another user account
- From: "nicolasr" <nicolasrREMOVETHISSPAMBLOCKER@xxxxxxx>
- Date: Mon, 23 Apr 2007 19:38:45 +0200
thanks Brian. I have done several tests.
CoSetProxyBlanket would probably be fine for accessing
the server remotely. One specific client, however, needs to run on the same
machine as the server.
CoSetProxyBlanket is documented to not use the specified AuthInfo
parameter for client and server on the same machine.
In a test program I tried specifying credentials to CoCreateInstanceEx
and also in a call to CoInitializeSecurity but both didn't work!
The only method that worked for me was to write a launcher app that
uses CreateProcessWithLogonW to launch the client program.
Is there any method at all that allows me to call methods of a
DCOM server locally with different credentials?
thanks for the help,
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
.
- Follow-Ups:
- Re: Communicating with DCOM server using another user account
- From: Brian Muth
- Re: Communicating with DCOM server using another user account
- References:
- Communicating with DCOM server using another user account
- From: nicolasr
- Re: Communicating with DCOM server using another user account
- From: Brian Muth
- Re: Communicating with DCOM server using another user account
- From: nicolasr
- Re: Communicating with DCOM server using another user account
- From: Brian Muth
- Communicating with DCOM server using another user account
- Prev by Date: Re: COM server under different account
- Next by Date: Re: COM server under different account
- Previous by thread: Re: Communicating with DCOM server using another user account
- Next by thread: Re: Communicating with DCOM server using another user account
- Index(es):
Relevant Pages
|
Loading