| |
Windwos Authentication |
SQL Authentication |
| 可替换名称 |
Trusted Authentication
Integrated Security
|
没有,但是Mixed Mode Authen tication允许使用Windows或者SQL Authentication |
| 典型环境 |
内部网 |
因特网 |
| 用户和认证过程列表的位置 |
Windows |
SQL Server |
| SSE安装 |
默认安装 |
需要指定安装 |
| 连接字符串 |
Trusted_connection=true或者Integrated Security=true |
user=username;
password=password |
| ASP.NET Web应用程序的用户 |
ASP.NET进程、ASPNET(IIS 5.x)或者Network Service(IIS 6) |
SQL用户 |
| 优势 |
较好的安全性;可以对用户在SQL事件和Windows事件中的活动进行跟踪 |
无需创建新账户即可在宿主机上部署;独立于操作系统
宿主的内部网站点只需一般技术
为应用程序提供更加灵活的方式以不同的证书来连接每个数据库 |
| 劣势 |
给予Web应用程序Windows证书有可能会将OS中的权限范围设置过大 |
密码存储在Web应用程序中(在Windows认证中则不是)。确认密码保存在Web.config文件中并已加密。
允许使用sa证书的Web应用程序的低级操作。总是为ASP.NET Web应用程序创建新的证书并只给予所需的权限 |