添加 IIS 7 AppPool 身份作为 SQL Server 登录

Add IIS 7 AppPool Identities as SQL Server Logons(添加 IIS 7 AppPool 身份作为 SQL Server 登录)
本文介绍了添加 IIS 7 AppPool 身份作为 SQL Server 登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行一个带有集成管道模式的 AppPool 的 IIS 7 网站.AppPools 不在 NetworkService 等身份下运行(根据目的),而是使用自己的 AppPool Identitiy (IIS AppPoolMyAppPool).

I'm running an IIS 7 Website with an AppPool of Integrated Pipeline Mode. The AppPools does NOT run under NetworkService, etc.. identity (by purpose), but uses its own AppPool Identitiy (IIS AppPoolMyAppPool).

这是所谓的服务帐户或虚拟帐户.(用户帐户,不是完整帐户...)

This is a so called service account or virtual account. (a user account, which is not a full account...)

我想授予此服务帐户 (IIS AppPoolMyAppPool) 连接到我的 SQL Server 2008 Express(以混合身份验证模式运行)的权限.

I'd like to give this service account (IIS AppPoolMyAppPool) permissions to connect to my SQL Server 2008 Express (running in Mixed Auth. Mode).

虽然 SQL Server 可以添加任何普通用户帐户,但无法将 IIS AppPoolMyAppPool 虚拟帐户添加到有效登录中(SQL Server 说找不到该帐户).

有什么技巧,我需要启用什么才能使虚拟帐户工作?(w3wp.exe进程根据taskmgr在这个身份下运行,但我也不能在NTFS安全中使用该帐户......)

Is there any trick, anything I need to enable to make the virtual accounts work? (the w3wp.exe process runs under this identity according to taskmgr, but I cannot use the account in NTFS security either...)

感谢您的帮助!

推荐答案

IIS APPPOOLAppPoolName"将起作用,但如前所述,它似乎不是有效的 AD 名称,因此当您在选择用户或组"对话框,它不会出现(实际上,它会找到它,但它会认为它是一个实际的系统帐户,它会尝试这样对待它......这是行不通的, 并且会给你关于它没有被找到的错误信息).

The "IIS APPPOOLAppPoolName" will work, but as mentioned previously, it does not appear to be a valid AD name so when you search for it in the "Select User or Group" dialog box, it won't show up (actually, it will find it, but it will think its an actual system account, and it will try to treat it as such...which won't work, and will give you the error message about it not being found).

我是如何让它工作的:

  1. 在 SQL Server Management Studio 中,查找 Security 文件夹(与 Databases、Server Objects 等文件夹处于同一级别的 security 文件夹......而不是每个单独数据库中的 security 文件夹)
  2. 右键单击登录名并选择新登录名"
  3. 在登录名字段中,输入 IIS APPPOOLYourAppPoolName - 不要点击搜索
  4. 填写您喜欢的任何其他值(即身份验证类型、默认数据库等)
  5. 点击确定
  1. In SQL Server Management Studio, look for the Security folder (the security folder at the same level as the Databases, Server Objects, etc. folders...not the security folder within each individual database)
  2. Right click logins and select "New Login"
  3. In the Login name field, type IIS APPPOOLYourAppPoolName - do not click search
  4. Fill whatever other values you like (i.e., authentication type, default database, etc.)
  5. Click OK

只要 AppPool 名称实际存在,现在就应该创建登录名.

As long as the AppPool name actually exists, the login should now be created.

这篇关于添加 IIS 7 AppPool 身份作为 SQL Server 登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Execute complex raw SQL query in EF6(在EF6中执行复杂的原始SQL查询)
SSIS: Model design issue causing duplications - can two fact tables be connected?(SSIS:模型设计问题导致重复-两个事实表可以连接吗?)
SQL Server Graph Database - shortest path using multiple edge types(SQL Server图形数据库-使用多种边类型的最短路径)
Invalid column name when using EF Core filtered includes(使用EF核心过滤包括时无效的列名)
How should make faster SQL Server filtering procedure with many parameters(如何让多参数的SQL Server过滤程序更快)
How can I generate an entity–relationship (ER) diagram of a database using Microsoft SQL Server Management Studio?(如何使用Microsoft SQL Server Management Studio生成数据库的实体关系(ER)图?)