如何为域里面的ASP.NET站点集成 Windows authentication?
来源:互联网 发布:windows msg 编辑:程序博客网 时间:2024/04/30 12:39
折腾了很多天,最后终于搞定。我在域中integrate Windows authentication的solution基于Windows Server 2003 + IIS6 环境。
1. 在IIS中,在该 website 的属性中,
a. 禁止匿名登录,并选择 integrated Windows authentication;
b. 注意 virtual directory 的权限,可能需要 script source access 权限;
c. App Pool 的 identity 选择 Network Service。
2. 在 Web.config 文件中,在 <system.web> 配置节下,
<!--<identity impersonate="true"/>-->
<!--<IDENTITY impersonate="true" userName="ww06/xx" password="xx." />-->
<authentication mode="Windows"/>
<!--<authorization>
<deny users="?"/>
</authorization>-->
// 网上关于这里的配置方法乱七八糟。关于这里的原理,我觉得可以参考 http://www.haodi.com.cn/Safety/20051130145740.htm
这样,每次用户访问首页的时候,客户端就能自动获取 Windows 当前登录的域账户用做 authentication。
Open Issue
1. 如果给此 website 设置单独的本地账户 xxuser(记得将该账户添加到IIS_WPG 用户组中),则无法 integrate Windows authentication。无论怎么尝试都是失败的。
- 如何为域里面的ASP.NET站点集成 Windows authentication?
- ASP.NET Windows authentication 测试
- Asp.net 2.0 Windows Authentication
- 如何在Firefox中实现ASP.NET 不弹出窗口的Windows Integrated Authentication
- 下载的Asp.net程序 authentication mode="Windows"出错
- 关于ASP.NET MVC中Form Authentication与Windows Authentication的简单理解
- 如何提高windows server 2003上ASP.NET站点的访问速度
- Asp.net集成Windows域账户登陆
- ASP.NET Authentication - Form Authentication
- ASP.NET - 如何:添加简单的站点导航
- 如何记录asp.net站点重启的原因?
- 如何记录asp.net站点重启的原因?
- ASP.NET Authentication Provider
- ASP.NET Authentication Provider
- ASP.NET forms authentication
- ASP.NET Authentication Provider
- ASP.NET Identity Authentication
- asp.net Forms Authentication
- 在C#中优化字符串操作
- 电子银行业务分析系统—项目总结3. 计划执行总结
- Robert 边缘检测算子
- 电子银行业务分析系统—项目总结4. 产品质量总结
- 新的开始
- 如何为域里面的ASP.NET站点集成 Windows authentication?
- 电子银行业务分析系统—项目总结5. 项目风险总结
- Ubuntu9.04上的QT4 HelloWorld程序
- Google:Android手机日出货6.5万台媲美iPhone
- oracle创建JOb小结
- 从MTK的scat文件谈ROM和RAM的分配,管理和问题解决
- apache和tomcat使用mod_proxy_ajp进行整合
- js动态添加事件的方法