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. Advice on WCF configurations

Advice on WCF configurations

Scheduled Pinned Locked Moved C#
securitycsharpwcfsysadmincryptography
3 Posts 2 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.
  • B Offline
    B Offline
    BigBenDk
    wrote on last edited by
    #1

    Hi I have spent the last few days surfing the net on WCF and on how to configure it, but I can't seem to find the correct solution. I have made an application, that is used on internal lan (Client/Server). I would like to use the existing windows logon, and integrate with the local domain controller. Additional I would like to have the option to enter an other windows logon, than the one the user is currently logged on with. Security is not that big a concern, because all traffic is internal and the information is not very sensitive - but of cause it should not be ignored. I would like to avoid having to setup SSL and manage certificates - It makes it harder to deploy, and if I have to purchase a certificate for every customer, it raises the price of the product. How would you recommend setting up WCF in this scenario?

    P 1 Reply Last reply
    0
    • B BigBenDk

      Hi I have spent the last few days surfing the net on WCF and on how to configure it, but I can't seem to find the correct solution. I have made an application, that is used on internal lan (Client/Server). I would like to use the existing windows logon, and integrate with the local domain controller. Additional I would like to have the option to enter an other windows logon, than the one the user is currently logged on with. Security is not that big a concern, because all traffic is internal and the information is not very sensitive - but of cause it should not be ignored. I would like to avoid having to setup SSL and manage certificates - It makes it harder to deploy, and if I have to purchase a certificate for every customer, it raises the price of the product. How would you recommend setting up WCF in this scenario?

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      For a start, as it is internal, I would use NetTcpBinding. I'm not sure what else you want to know, but it's easy enough for you to get the windows user. When it comes to using the user information, you can retrieve the users identity back like this:

      WindowsIdentity id = ServiceSecurityContext.Current.WindowsIdentity;
      

      If you want to perform some impersionation with this value, you would just use:

      using (id.Impersonate())
      {
      }
      

      Deja View - the feeling that you've seen this post before.

      B 1 Reply Last reply
      0
      • P Pete OHanlon

        For a start, as it is internal, I would use NetTcpBinding. I'm not sure what else you want to know, but it's easy enough for you to get the windows user. When it comes to using the user information, you can retrieve the users identity back like this:

        WindowsIdentity id = ServiceSecurityContext.Current.WindowsIdentity;
        

        If you want to perform some impersionation with this value, you would just use:

        using (id.Impersonate())
        {
        }
        

        Deja View - the feeling that you've seen this post before.

        B Offline
        B Offline
        BigBenDk
        wrote on last edited by
        #3

        Hi Pete Thank you for the speedy reply! Is it really that simple? - I looked at message security configurations, that seemed far more complex. E.g http://msdn2.microsoft.com/en-us/library/ms789011.aspx Do you know how to specify the credentials on the client side, if entered manually?

        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