Re: Communicating with DCOM server using another user account
- From: "Brian Muth" <bmuth@xxxxxxxx>
- Date: Mon, 23 Apr 2007 11:17:54 -0700
"nicolasr" <nicolasrREMOVETHISSPAMBLOCKER@xxxxxxx> wrote in message
news:ukcdH5chHHA.4516@xxxxxxxxxxxxxxxxxxxxxxx
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?
I didn't realize you were trying to do this on the same machine. It's clear
that your requirements as they stand can't be satisfied in any other way.
Perhaps you should be questioning why these requirements are there in the
first place? What purpose is being addressed by running the COM server under
account B?
Brian
.
- Follow-Ups:
- 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
- Re: Communicating with DCOM server using another user account
- From: nicolasr
- 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
|