【问题标题】:ASP.NET SQL Database Connection Security for IIS 8 and beyond [closed]IIS 8 及更高版本的 ASP.NET SQL 数据库连接安全 [关闭]
【发布时间】:2017-06-14 15:04:28
【问题描述】:

对于如何从 ASP.NET 管理 SQL Server 连接,似乎没有明确的最佳实践。有兴趣了解以下解决方案以及未列出的任何其他解决方案的利弊。自 IIS 7.5 以来,我还没有重新访问过这个,所以此时也许有更好的方法:

  1. 使用虚拟应用程序池身份(虚拟帐户)并将其添加为 SQL 登录。
  2. 让应用程序池使用域帐户作为其身份。在 SQL Server 中设置与登录相同的帐户。
  3. 让 asp.net 应用程序使用从注册表收集的信息模拟域帐户。应用程序池将使用虚拟应用程序池标识。将域帐户添加为 SQL Server 中的登录名。

【问题讨论】:

    标签: c# asp.net sql-server iis


    【解决方案1】:
    1) pro: simple 
       con: if there are multiple web apps on the IIS server, they will all use the machine account to authenticate to a remote SQL instance.
    
    2) pro: can give each app pool a distinct domain identity
       con: password management
    
    3) pro: none
       con: insecure credential storage
    

    【讨论】:

    • 您有使用托管服务帐户的经验吗?
    • 不使用 IIS,但我的理解是 MSA 或 gMSA 应该可以工作,并将消除“密码管理”问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多