如何使用NetNamedPipesBinding保护WCF服务,使其只能由当前用户调用? [英] How to secure a WCF service using NetNamedPipesBinding so that it can only be called by the current user?
问题描述
我正在使用带有NetNamedPipesBinding的WCF服务在我的进程中的两个AppDomain之间进行通信.
I'm using a WCF service with the NetNamedPipesBinding to communicate between two AppDomains in my process.
如何保护服务,以便同一台计算机上的其他用户无法访问该服务?
How do I secure the service so that it is not accessible to other users on the same machine?
我已经采取了在端点地址中使用GUID的预防措施,因此通过模糊处理可以提高安全性,但是我正在寻找一种使用ACL或类似方法锁定服务的方法.
I have already taken the precaution of using a GUID in the Endpoint Address, so there's a little security through obscurity, but I'm looking for a way of locking the service down using ACL or something similar.
推荐答案
See http://blogs.charteris.com/blogs/chrisdi/archive/2008/06/23/exploring-the-wcf-named-pipe-binding-part-3.aspx for one way to do it via ACLs.
这篇关于如何使用NetNamedPipesBinding保护WCF服务,使其只能由当前用户调用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!