摘要: System.Diagnostics.Process.Start("D:\\");function 打开路径_onclick() {window.open("\\\\10.71.210.239\\ShareR");} 阅读全文
posted @ 2011-05-25 22:17 焚情、烈日 阅读(262) 评论(0) 推荐(0) 编辑
摘要: .首先我说下,我在网上找过1、web.config 2、IIS 中启用Windows集成认证,关闭匿名访问 3、通过User.Identity.Name进行读取,读出登录帐号 如何在 Windows Server 2003 中配置 IIS 网站身份验证1. 启动“IIS 管理器”或者打开 IIS 管理单元。2. 展开 Server_name,其中 Server_name 是服务器的名称,然后展开网站。3. 在控制台树中,右键单击您要配置身份验证的网站、虚拟目录或文件,然后单击属性。4. 单击目录安全性或文件安全性选项卡(根据需要),然后在“匿名和访问控制”下单击编辑。5. 单击以选中您要使用的 阅读全文
posted @ 2011-05-25 20:27 焚情、烈日 阅读(1573) 评论(0) 推荐(0) 编辑
摘要: 1.在IIS中将访问方式更改为不允许匿名访问2.在Web.config中将验证方式更改为 <identity impersonate="true"/> <authentication mode="Windows" />3.在源代码中使用 string username= Security.Principal.WindowsIdentity.GetCurrent().Namestring[] info = username.Split(new char[1] { '\\' }, StringSplitOptions. 阅读全文
posted @ 2011-05-25 01:03 焚情、烈日 阅读(489) 评论(0) 推荐(0) 编辑
摘要: public static class DomainInformation { #region Constants //static string[] usersLdapPath = @"LDAP://zzzzzz.com/OU=xxxxxx,DC=yyyyyy,DC=com"; static string usersLdapPath = System.Configuration.ConfigurationManager.AppSettings["LDAPConnectionString"].ToString() ; const string adLog 阅读全文
posted @ 2011-05-25 01:00 焚情、烈日 阅读(677) 评论(0) 推荐(0) 编辑