Setting object callback access permissions

  • Thread starter Thread starter Francisco Garcia
  • Start date Start date
F

Francisco Garcia

Hi,

I have a client object which passes a callback interface to a server
object executing in a different machine, but the server object gets an
access denied error when trying to call the client object through that
callback interface.

Client object is in an ActiveX dll written in VB. It can be loaded by
many processes, executing in different operating systems (Windows
95/98/Me/NT 4/2000

I don't want to change system-wide security settings in the client
machine (I don't want to open security holes).
I can't change process-wide security settings in the client process
(client object is in a dll, can't call CoInitializeSecurity)
I can't call CoSetProxyBlanket in the client process (I don't have a
proxy; I have the real object, so CoSetProxyBlanket returns E_NOINTERFACE)
I can't call CoSetProxyBlanket in the server process (server object
doesn't have access to lower access restrictions)

How should I proceed to grant the server access permission to the
callback interface in the client object?

Thanks in advance
 
Dmitrii,

Thank you very much for your advice but, according to docs:

"This interface is primarily used to set processwide security with a call to
CoInitializeSecurity, specifying EOAC_ACCESS_CONTROL as the capability flag,
and providing a pointer to an instance of IAccessControl as the first
(pVoid) parameter."

And I can't call CoInitializeSecurity from a DLL.

Any other ideas?

TIA
 
Back
Top