lothos12345 Posted May 13, 2005 Posted May 13, 2005 How do you authenicate the active directory using Windows IIS? Any help given is greatly appreciated. Quote
travisowens Posted May 16, 2005 Posted May 16, 2005 How do you authenicate the active directory using Windows IIS? Any help given is greatly appreciated. This is what I have in my .Net notes that I used about a year ago... Manage IIS > right Click Web Sites > Properties > Directory Security > Edit Button (Auth & Access Control) > uncheck 'Enable anonymous access' and make sure 'Integrated Widows Auth' is checkmarked Then if you want the ASP.Net to run as the web user then add this to your web.config <identity impersonate="true" /> Now you can access the username by: HttpContext.Current.User.Identity.Name; using System.Security.Principal; User.Identity.Name; System.Threading.Thread.CurrentPrincipal.Identity.Name; Quote Experience is something you don't get until just after the moment you needed it
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.