Search code examples
c#asp.net.netasp.net-membershipmembership-provider

ASP.NET Web Pages and AD Membership


Is it possible to authenticate a user with Active Directory membership using the web pages flavor of asp.net? What I've noticed from most examples I've seen online is that webpages uses the simple membership provider.


Solution

  • I've successfully used this setup in the past to authenticate using Active Directory on .net web pages: http://msdn.microsoft.com/en-us/library/ff650308.aspx

    UPDATE:

    The previous link will work for "Web Forms"/framework 2.0. This seems to be the equivalent for "Web Pages": http://www.mikesdotnetting.com/Article/216/Windows-Authentication-With-ASP.NET-Web-Pages

    I've never used the method described for Web Pages, but looking through the code and comparing it, it seems to be doing the same thing, which is disabling the default SimpleMembership authentication and using AD instead. Hope this helps.