看板 C_Sharp 關於我們 聯絡資訊
請問 在公司內部web系統登入(windows驗證), 要抓取user登入windows的網域跟帳號來做權限控管, 可是我一直抓不到user的資料(如:domain/abcWu), 都抓到server的登入資料(如:ServerName/administrator)..... 請問有人經驗嗎? 我用以下方式都不行@@! IIS已取消匿名驗證,選擇windows驗證 System.Security.Principal.WindowsIdentity.GetCurrent().Name HttpContext.Current.User.Identity.Name; System.Environment.UserName; -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.110.213.62
qwer820404:確定他們有連線到嗎 08/30 23:00
g66932007:有阿 就是從USER電腦連WEB阿 08/30 23:04
qwer820404:你是用LDAP嗎? 08/31 02:12
g66932007:沒 單純抓網域下 USER開網頁的登入資料 08/31 09:18
qwer820404:說一下你的環境吧 08/31 14:38
g66932007:server2003+framework2.0+iis6.0 08/31 15:31
jj09:原PO有參考過這一篇文章嗎?http://goo.gl/2uZZoF 09/03 10:58