C# Remoting

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

I have implemented a C# class inherited from System.MarshalByRefObject
and using RegisterWellKnownServiceType to allow a web app to communicate
with a service on the same machine.

I would like to limit remoting of this class to the same machine (i.e. I
do NOT want external machines connecting to my class). Is there a way
to set security permissions for System.MarshalByRefObject to allow local
connections only?
 
No, unfortunately not. This is one reason they have introduced the IpcChannel in version 2.0,

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

I have implemented a C# class inherited from System.MarshalByRefObject
and using RegisterWellKnownServiceType to allow a web app to communicate
with a service on the same machine.

I would like to limit remoting of this class to the same machine (i.e. I
do NOT want external machines connecting to my class). Is there a way
to set security permissions for System.MarshalByRefObject to allow local
connections only?
 
Wow.... Is there something like domain authentication I can put into
place or does the object end up responsible for all of its own security?
 
No supported way in 1.x (although you'll be pleased to know they introduced it in v2.0 ;-) ). There are a couple of unsupported samples that do passthru authentication via SSPI and encryption I think. I believe they are on gotdotnet.com

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<[email protected]>

Wow.... Is there something like domain authentication I can put into
place or does the object end up responsible for all of its own security?
 
Back
Top