简体   繁体   English

如何在Sql Server上设置安全性以允许WCF服务进行访问?

[英]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.

相关问题 如何为WCF服务配置SQL Server安全性? - How Do I Configure SQL Server Security for a WCF Service? 我应该如何从WCF服务解决方案访问SQL Server? - How should I access SQL Server from a WCF service solution? 如何配置SQL Server以允许通过IIS进行访问 - How do I configure SQL Server to allow access via IIS SQL 服务器 CLR function 试图访问 WCF 服务,我不断收到“System.Security.HostProtectionException”错误返回 - SQL Server CLR function that is attempting to access a WCF service and I keep getting a "System.Security.HostProtectionException" error returned 如何让window后台服务访问SQL服务器数据库? - How to allow window background service to access SQL Server database? 如何设置SQL Server LocalDB在客户端计算机上运行? - How do I set up SQL Server LocalDB to run on a client's machine? WCF委派,服务无法访问SQL Server - WCF Delegation, Service couldn't access SQL Server 如何设置新的SQL Server数据库以允许将来可能的复制? - How to set up a new SQL Server database to allow for possible replication in the future? SQL Server 2017 on Linux/Kubernetes -- 设置 TLS 安全性 - SQL Server 2017 on Linux/Kubernetes -- Set up TLS Security SQL Server 2016:如何为规范化表设置行级安全性 (RLS) - SQL Server 2016: How to set up row level security(RLS) for normalized tables
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM