如何在登錄時實現Windows身份驗證以驗證用戶身份? 我不想得到一個彈出窗口,而是我想讓我的登錄頁面(LoginPage.aspx)也一樣。請爲我提供步驟/代碼(vb.net)。謝謝Windows身份驗證(ASP.NET)
回答
它需要大量的代碼來訪問活動目錄和身份驗證。請參閱codeproject.com或msdn文章的文章。
可以提供我的文章鏈接...(codeproject之一) – Vinayak
http://www.codeproject.com/Articles/265870/Bypass-Forms-Authentication-to-Use-Active-Director – CodeSpread
這將有助於.. 。感謝:) – Vinayak
也許你可以在你的web.config
<authentication mode="Forms">
<forms loginUrl="login.aspx" defaultUrl="Login.aspx" timeout="60"></forms>
</authentication>
使用這個標籤,並在你的Login.aspx你會寫代碼訪問Active Directory。
好的謝謝:) – Vinayak
您錯過了關於Windows身份驗證的觀點。表單身份驗證可以在不屬於域的一部分時使用,也可以使用Windows身份驗證無法解決的某些特定要求。如果計算機在活動目錄域中註冊,則基於用於登錄到域的憑證,對網站的認證將是透明的,從而不需要在每次訪問應用程序時提供憑證。
我想訪問LDAP目錄使用vb.net – Vinayak
集成身份驗證不僅僅是訪問LDAP –
- 1. asp.net Windows身份驗證
- 2. ASP.NET Windows身份驗證
- 3. Asp.net和Windows身份驗證
- 4. ASP.NET Windows身份驗證
- 5. ASP.NET MVC Windows身份驗證
- 6. ASP.NET身份+ Windows身份驗證(混合模式 - 窗體+ Windows)
- 7. ASP.NET身份驗證
- 8. ASP.net身份驗證
- 9. ASP.NET身份驗證
- 10. ASP.NET Windows身份驗證註銷
- 11. 使用Windows身份驗證的ASP.Net WebForms
- 12. asp.net mvc 3 windows身份驗證
- 13. ASP.NET Windows +數據庫身份驗證
- 14. ASP.NET vNext Kestrel + windows身份驗證
- 15. 帶WCF Windows身份驗證的ASP.NET
- 16. ASP.NET Windows身份驗證模擬
- 17. ASP.NET Windows身份驗證模擬問題
- 18. Windows身份驗證,ASP.Net MVC錯誤
- 19. Windows身份驗證和Asp.Net Web API
- 20. ASP.Net中的Windows身份驗證
- 21. ASP.NET MVC6 Beta8和Windows身份驗證
- 22. Windows身份驗證初始化ASP.net
- 23. 與ASP.Net使用Windows身份驗證AJAX
- 24. ASP.NET Windows身份驗證 - 註銷
- 25. ASP.NET窗體身份驗證與Windows Safari
- 26. Windows身份驗證 - MVC 2 ASP.Net
- 27. ASP.NET混合形式/ Windows身份驗證
- 28. ASP.Net for WebApi中的Windows身份驗證
- 29. ASP.NET自定義Windows身份驗證
- 30. ASP.Net:忽略Windows身份驗證
@GregSmith新來的.NET,也搜索過之前..無法解決我的問題。 – Vinayak