.Net 2.0 remoting security question
-
Is it me or is the documentation on setting up a secure tcp channel in remoting particularly opaque? Please, can someone explain to me in words (preferably) of one syllable how to use the .Net remoting 2.0 tcp security model to do the following: Cause authentication and encryption to be required on calls to a singleton remoted object. The scenario is: I have a huge LED display board in a call centtre. The server it is connected to (by RS232 (quaint)) exposes it's interface as a remote object. A web site on the intranet remotes in to set the text on the display. The web site is Windows authenticated, but obviously anyone with the URL of the display server could remote in and put rude messages up in the call centre. So, how to secure? I've got this far
IDictionary properties = new Hashtable();
properties.Add("port", 12000);
properties.Add("secure", true);
properties.Add("impersonate", true);
IChannel channel = new TcpChannel(properties, null, null);
ChannelServices.RegisterChannel(channel, true);RemotingConfiguration.RegisterWellKnownServiceType(
typeof(LaserDisplayBoardDriver),
"LDB",
WellKnownObjectMode.Singleton);but I don't know how to consume this in the client, nor how to pass credentials. Please help!
-
Is it me or is the documentation on setting up a secure tcp channel in remoting particularly opaque? Please, can someone explain to me in words (preferably) of one syllable how to use the .Net remoting 2.0 tcp security model to do the following: Cause authentication and encryption to be required on calls to a singleton remoted object. The scenario is: I have a huge LED display board in a call centtre. The server it is connected to (by RS232 (quaint)) exposes it's interface as a remote object. A web site on the intranet remotes in to set the text on the display. The web site is Windows authenticated, but obviously anyone with the URL of the display server could remote in and put rude messages up in the call centre. So, how to secure? I've got this far
IDictionary properties = new Hashtable();
properties.Add("port", 12000);
properties.Add("secure", true);
properties.Add("impersonate", true);
IChannel channel = new TcpChannel(properties, null, null);
ChannelServices.RegisterChannel(channel, true);RemotingConfiguration.RegisterWellKnownServiceType(
typeof(LaserDisplayBoardDriver),
"LDB",
WellKnownObjectMode.Singleton);but I don't know how to consume this in the client, nor how to pass credentials. Please help!