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