Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8100779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:50:08+00:00 2026-06-05T22:50:08+00:00

I’m trying to authenticate users onto a MVC3 application using Active Directory (without login

  • 0

I’m trying to authenticate users onto a MVC3 application using Active Directory (without login page), in addition to managing access to parts of the application based on the users groups. I’ve searched far and wide with no end to end example. I was hoping someone could assist. My Active Directory settings are: CN=Test User,OU=NETDOM,DC=NETLAB,DC=COM.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:50:09+00:00Added an answer on June 5, 2026 at 10:50 pm

    Under your appSettings you should add

    <add key="enableSimpleMembership" value="false" />
    <add key="autoFormsAuthentication" value="false" />
    

    and then under

    <system.web>
    <authentication mode="Windows" />
    </system.web>
    

    the first items under appSettings turns off the automatic redriection to the /account/login route. while the authenication node turns on Windows Auth in IIS.

    so long as they are on the domain the server is on then this should work without having to implement any authentication

    Edit
    if you want to use the membership provider then add under the system.web node.

    <membership defaultProvider="MyADMembershipProvider">
                <providers>
                    <add name="MyADMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ConnectionStringFromConnectionSettings" attributeMapUsername="sAMAccountName" />
                </providers>
            </membership>
    

    then all you would have to do is in the Global.asax add an event handler for

    PostAuthenticateRequest
    

    to check against AD.
    be careful here as this event is fired for ALL requests on the server and could effect performance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to authenticate users to an Active Directory Instance using spring security,
I'm trying to authenticate users to a PHP webapp through LDAP with Active Directory.
I want to authenticate users when trying to get an application using windows authentication.
I'm trying to Authenticate users by their emails instead of username. I'm using django-userena
I am trying to authenticate linkedin users for my site. I am using Scribe
in an .NET application, I'm trying to authenticate users by username and password a
I'm trying to connect to facebook to authenticate users but in facebook's login dialog
My application defines authorized users via LDAP (usually Active Directory): The customer defines an
I'm trying to enable my GWT application authenticate users with their Google accounts. What
I am using Devise in Rails to help authenticate users. I am trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.