Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. .Net 2.0 remoting security question

.Net 2.0 remoting security question

Scheduled Pinned Locked Moved C#
securityquestioncsharpsysadminhelp
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gizz
    wrote on last edited by
    #1

    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!

    G 1 Reply Last reply
    0
    • G Gizz

      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!

      G Offline
      G Offline
      Gizz
      wrote on last edited by
      #2

      Anyone?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups