Re: Communicating with DCOM server using another user account

Tech-Archive recommends: Fix windows errors by optimizing your registry



"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





.



Relevant Pages

  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)
  • This is going straight to the pool room
    ... or not the client has privilege to do what they're trying to do, ... The server environment is this: ... 3GL User action Routines that Tier3 will execute on your behalf during the ... Routine Name: USER_INIT ...
    (comp.os.vms)
  • [Full-Disclosure] R: Full-Disclosure Digest, Vol 3, Issue 42
    ... Full-Disclosure Digest, Vol 3, Issue 42 ... SD Server 4.0.70 Directory Traversal Bug ... Arkeia Network Backup Client Remote Access ...
    (Full-Disclosure)
  • Re: What doesnt lend itself to OO?
    ... > rather than client code. ... no way to do that without also touching the object with clock semantics ... will not encapsulate both clock semantics and network semantics. ... The server can do whatever it wants ...
    (comp.object)
  • RE: Fax monitor incoming + outgoing calls?
    ... problem between the client computer and the SBS server. ... Client is using the internal IP address of the SBS server as the ... To the folder redirection GPO issue: ...
    (microsoft.public.windows.server.sbs)