[英]How do I set up security on Sql Server to allow access by a WCF service?
I have a WCF service hosted within IIS that logs information in a sql server 2008 db. 我有一个托管在IIS中的WCF服务,该服务将信息记录在sql server 2008数据库中。 I have successfully tested this within my local IIS and SS2008 db (using an application pool running under my windows id). 我已经在本地IIS和SS2008数据库中成功测试了这一点(使用在Windows ID下运行的应用程序池)。
Now I have moved the database and wcf service to the production server and wondering how to set the security up on the database to allow access by the WCF service (presumably running under a local IIS account / default application pool). 现在,我已将数据库和wcf服务移至生产服务器,并且想知道如何在数据库上设置安全性,以允许WCF服务(大概在本地IIS帐户/默认应用程序池下运行)进行访问。
The IIS server and the db server are on different machines (in the same domain). IIS服务器和db服务器位于不同的计算机上(在同一域中)。 The database is using integrated authentication. 该数据库正在使用集成身份验证。
Set up domain identity impersonation for the IIS pool, and give that identity access to the relevant Database. 为IIS池设置域标识模拟,并为该标识提供对相关数据库的访问权限。
Or give the local IIS account access to the relevant Database. 或授予本地IIS帐户对相关数据库的访问权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.