简体   繁体   中英

Thread.CurrentPrincipal.Identity And Active Directory

I want to authenticate Thread.CurrentPrincipal.Identity when it has entry in active directory or redirect user to login page to check the database for valid user.

MBM

If Integrated Windows Authentication is turned ON in IIS and you've set the identity mode to "windows" in your Web.config, authentication using AD is completely automatic. You should not need a "login page" per se. You can and should do checks like this in your global.asax file in the Application_AuthenticateRequest handler.

You really owe it to yourself to read this: http://msdn.microsoft.com/en-us/library/ff649337.aspx

And I can't stress how helpful Keith Brown's book is on getting these concepts understood and working properly: http://alt.pluralsight.com/wiki/default.aspx/Keith.GuideBook/HomePage.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM